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