| 1 |
// RUN: %clang -### --target=aarch64-pc-freebsd -fxray-instrument -c %s -o /dev/null 2>&1 | FileCheck %s |
| 2 |
// RUN: %clang -### --target=arm64-apple-macos -fxray-instrument -c %s -o /dev/null 2>&1 | FileCheck %s |
| 3 |
// RUN: %clang -### --target=x86_64-apple-darwin -fxray-instrument -c %s -o /dev/null 2>&1 | FileCheck %s |
| 4 |
// RUN: not %clang -### --target=x86_64-pc-windows -fxray-instrument -c %s -o /dev/null 2>&1 | FileCheck %s --check-prefix=ERR |
| 5 |
|
| 6 |
// CHECK: "-cc1" {{.*}}"-fxray-instrument" |
| 7 |
// ERR: error: unsupported option '-fxray-instrument' for target |
| 8 |
|
| 9 |
typedef int a; |