blob: f0d1a8a8c7372100d7a3f0fe23a98cfacf9529b5 [file] [log] [blame]
// This test ensures that when we invoke the clang compiler, that the -cc1
// options respect the -fno-xray-function-index flag we provide in the
// invocation. The default should be to *include* the function index.
//
// RUN: %clang -### -fxray-instrument -target x86_64 -c %s 2>&1 | FileCheck %s
// RUN: %clang -### -fxray-instrument -target x86_64 -fxray-function-index -c %s 2>&1 | FileCheck %s
// CHECK-NOT: -fno-xray-function-index
// RUN: %clang -### -fxray-instrument -target x86_64 -fno-xray-function-index -c %s 2>&1 | FileCheck %s --check-prefix=CHECK-DISABLED
// CHECK-DISABLED: -fno-xray-function-index