blob: da2535509b994c6d8ce0d6865610e2ba06d24a18 [file] [log] [blame]
Dean Michael Berris5082e252018-09-21 08:32:49 +00001// This test ensures that when we invoke the clang compiler, that the -cc1
2// options include the -fxray-instrumentation-bundle= flag we provide in the
3// invocation.
4//
5// RUN: %clang -fxray-instrument -fxray-instrumentation-bundle=function -### \
6// RUN: -x c++ -std=c++11 -emit-llvm -c -o - %s 2>&1 \
7// RUN: | FileCheck %s
8// CHECK: -fxray-instrumentation-bundle=function
9//
10// REQUIRES-ANY: linux, freebsd
11// REQUIRES-ANY: amd64, x86_64, x86_64h, arm, aarch64, arm64