clang/test/AST/ast-dump-ptrauth-json.cpp
raw| 1 | // RUN: %clang_cc1 -triple arm64-apple-ios -fptrauth-calls -fptrauth-intrinsics -std=c++11 -ast-dump=json %s | FileCheck %s |
| 2 | // RUN: %clang_cc1 -triple aarch64-linux-gnu -fptrauth-calls -fptrauth-intrinsics -std=c++11 -ast-dump=json %s | FileCheck %s |
| 3 | |
| 4 | // CHECK: "name": "__builtin_ptrauth_type_discriminator", |
| 5 | // CHECK: "qualType": "int *__ptrauth(1,1,123)" |
| 6 | |
| 7 | int d = __builtin_ptrauth_type_discriminator(int()); |
| 8 | int * __ptrauth(1,1,123) p; |