• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // This test ensures that when we invoke the clang compiler, that the -cc1
2 // options respect the -fno-xray-function-index flag we provide in the
3 // invocation. The default should be to *include* the function index.
4 //
5 // RUN: %clang -### -fxray-instrument -target x86_64 -c %s 2>&1 | FileCheck %s
6 // RUN: %clang -### -fxray-instrument -target x86_64 -fxray-function-index -c %s 2>&1 | FileCheck %s
7 
8 // CHECK-NOT:  -fno-xray-function-index
9 
10 // RUN: %clang -### -fxray-instrument -target x86_64 -fno-xray-function-index -c %s 2>&1 | FileCheck %s --check-prefix=CHECK-DISABLED
11 
12 // CHECK-DISABLED:  -fno-xray-function-index
13