xref: /llvm-project/clang/test/Driver/xray-function-groups.cpp (revision c6e065ef22c29a341dcc764f8f6ed9ab5ec1c57a)
1 // RUN: %clang -### --target=aarch64-unknown-linux-gnu -fxray-instrument -fxray-function-groups=3 %s 2>&1 | FileCheck %s --check-prefix=GROUP0
2 // RUN: %clang -### --target=x86_64-unknown-linux-gnu -fxray-instrument -fxray-function-groups=3 -fxray-selected-function-group=0 %s 2>&1 | FileCheck %s --check-prefix=GROUP0
3 // RUN: %clang -### --target=x86_64-unknown-linux-gnu -fxray-instrument -fxray-function-groups=3 -fxray-selected-function-group=1 %s 2>&1 | FileCheck %s --check-prefix=GROUP1
4 
5 // GROUP0: "-fxray-function-groups=3"
6 // GROUP0-NOT: "-fxray-selected-function-group=
7 // GROUP1: "-fxray-function-groups=3" "-fxray-selected-function-group=1"
8