17c7c8e0dSIan Levesque // This test ensures that when we invoke the clang compiler, that the -cc1 27c7c8e0dSIan Levesque // options respect the -fno-xray-function-index flag we provide in the 37c7c8e0dSIan Levesque // invocation. The default should be to *include* the function index. 4*5c29ffdaSFangrui Song // 5f39000b4SFangrui Song // RUN: %clang -### -fxray-instrument -target x86_64 -c %s 2>&1 | FileCheck %s 6f39000b4SFangrui Song // RUN: %clang -### -fxray-instrument -target x86_64 -fxray-function-index -c %s 2>&1 | FileCheck %s 7f39000b4SFangrui Song 87c7c8e0dSIan Levesque // CHECK-NOT: -fno-xray-function-index 9f39000b4SFangrui Song 10f39000b4SFangrui Song // RUN: %clang -### -fxray-instrument -target x86_64 -fno-xray-function-index -c %s 2>&1 | FileCheck %s --check-prefix=CHECK-DISABLED 11f39000b4SFangrui Song 127c7c8e0dSIan Levesque // CHECK-DISABLED: -fno-xray-function-index 13