llvm-project/clang/test/Driver/XRay/xray-ignore-loops-flags.cpp
Fangrui Song 841ff7c6ca [Driver][test] Clean up some xray tests
Add explicit --target= so that the tests run on all targets, not some
that support XRay, similar to commit e1051414a16e970c2e36c2ab7dfe2b17353c4751.
For option testing, we often use a placeholder architecture (e.g., x86_64).

Fix https://github.com/llvm/llvm-project/issues/64028
2023-07-24 10:05:34 -07:00

7 lines
272 B
C++

// This test ensures that when we invoke the clang compiler, that the -cc1
// options include the -fxray-ignore-loops flag we provide in the
// invocation.
//
// RUN: %clang -### -c --target=x86_64 -fxray-ignore-loops %s 2>&1 | FileCheck %s
// CHECK: -fxray-ignore-loops