1 // RUN: %clang -### --target=x86_64-unknown-linux-gnu -fxray-instrument -fxray-link-deps -fno-xray-link-deps %s \ 2 // RUN: 2>&1 | FileCheck --check-prefix DISABLE %s 3 // RUN: %clang -### --target=x86_64-unknown-linux-gnu -fxray-instrument %s \ 4 // RUN: 2>&1 | FileCheck --check-prefix ENABLE %s 5 // RUN: %clang -### --target=x86_64-unknown-linux-gnu -shared -fxray-instrument %s \ 6 // RUN: 2>&1 | FileCheck --check-prefix DISABLE %s 7 // ENABLE: "--whole-archive" "{{.*}}clang_rt.xray{{.*}}"--no-whole-archive" 8 // DISABLE-NOT: clang_rt.xray 9