clang/test/Sema/ptrauth-struct-function-ptr-field.c
raw| 1 | // RUN: %clang_cc1 -triple arm64-apple-ios -x c -fsyntax-only -verify -fptrauth-intrinsics %s -fexperimental-new-constant-interpreter |
| 2 | // RUN: %clang_cc1 -triple arm64-apple-ios -x c++ -fsyntax-only -verify -fptrauth-intrinsics %s -fexperimental-new-constant-interpreter |
| 3 | |
| 4 | struct Foo { |
| 5 | void (*f)(int) __ptrauth(1,1,1); |
| 6 | // expected-error@-1 {{expected ';' at end of declaration list}} |
| 7 | }; |