19 lines · c
1// RUN: %clang_cc1 -triple arm64-apple-ios -fsyntax-only -verify -fptrauth-intrinsics %s2// RUN: %clang_cc1 -triple aarch64-linux-gnu -fsyntax-only -verify -fptrauth-intrinsics %s3 4#if __aarch64__5#define VALID_DATA_KEY 26#else7#error Provide these constants if you port this test8#endif9 10int * __ptrauth(VALID_DATA_KEY) valid0;11 12typedef int *intp;13 14int nonConstantGlobal = 5;15 16__ptrauth int invalid0; // expected-error{{expected '('}}17__ptrauth() int invalid1; // expected-error{{expected expression}}18int * __ptrauth(VALID_DATA_KEY, 1, 1000, 12) invalid12; // expected-error{{qualifier must take between 1 and 3 arguments}}19