llvm-project/clang/test/Driver/xray-function-index.cpp
Fangrui Song 63bd6d9e64 [Driver] Default to -fxray-function-index
As explained by commit 849f1dd15e92fda2b83dbb6144e6b28b2cb946e0,
-fxray-function-index was the original default but was accidentally flipped by
commit d8a8e5d6240a1db809cd95106910358e69bbf299. Restore the previous behavior.

Originally reported by Oleksii Lozovskyi in D145848.
2023-06-11 15:38:13 -07:00

6 lines
313 B
C++

// RUN: %clang -### -c --target=x86_64 -fxray-instrument %s 2>&1 | FileCheck %s
// RUN: %clang -### -c --target=x86_64 -fxray-instrument -fxray-function-index -fno-xray-function-index %s 2>&1 | FileCheck %s --check-prefix=DISABLED
// CHECK-NOT: "-fxray-function-index"
// DISABLED: "-fno-xray-function-index"