aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Sema/ptrauth-struct-function-ptr-field.c
blob: f9eccd559c37d864f8ef3158546678646a2d047d (plain)
1
2
3
4
5
6
7
// RUN: %clang_cc1 -triple arm64-apple-ios -x c   -fsyntax-only -verify -fptrauth-intrinsics %s -fexperimental-new-constant-interpreter
// RUN: %clang_cc1 -triple arm64-apple-ios -x c++ -fsyntax-only -verify -fptrauth-intrinsics %s -fexperimental-new-constant-interpreter

struct Foo {
  void (*f)(int) __ptrauth(1,1,1);
  // expected-error@-1 {{expected ';' at end of declaration list}}
};