1*8d0c8897SPaulo Matos // RUN: %clang_cc1 -triple powerpc-linux-gnu -fsyntax-only -verify %s 2*8d0c8897SPaulo Matos 3*8d0c8897SPaulo Matos // Test that we trigger an error at parse time if using keyword funcref 4*8d0c8897SPaulo Matos // while not using a wasm triple. 5*8d0c8897SPaulo Matos typedef void (*__funcref funcref_t)(); // expected-error {{invalid use of '__funcref' keyword outside the WebAssembly triple}} 6*8d0c8897SPaulo Matos typedef int (*__funcref fn_funcref_t)(int);// expected-error {{invalid use of '__funcref' keyword outside the WebAssembly triple}} 7*8d0c8897SPaulo Matos typedef int (*fn_t)(int); 8*8d0c8897SPaulo Matos 9*8d0c8897SPaulo Matos static fn_funcref_t nullFuncref = 0; 10