brintos

brintos / llvm-project-archived public Read only

0
0
Text · 382 B · 364565e Raw
14 lines · cpp
1// RUN: %clang_cc1 -std=c++11 -fcxx-exceptions -fexceptions -fsyntax-only -verify -triple wasm32 -Wno-unused-value -target-feature +reference-types %s2 3// Testing that funcrefs work on template aliases4// expected-no-diagnostics5 6using IntIntFuncref = int(*)(int) __funcref;7using DoubleQual = IntIntFuncref __funcref;8 9int get(int);10 11IntIntFuncref getFuncref() {12    return get;13}14