xref: /llvm-project/clang/test/Driver/fprofile-generate-temporal.c (revision 91892e8fa3830ed6590eda0bc62e2a2ea8df8872)
1 // RUN: %clang -### -c -fprofile-generate -ftemporal-profile %s 2>&1 | FileCheck %s
2 // RUN: %clang -### -c -fcs-profile-generate -ftemporal-profile %s 2>&1 | FileCheck %s
3 // RUN: not %clang -### -c -ftemporal-profile %s 2>&1 | FileCheck %s --check-prefix=ERR
4 
5 // CHECK: "-mllvm" "--pgo-temporal-instrumentation"
6 
7 // ERR: error: invalid argument '-ftemporal-profile' only allowed with '-fprofile-generate or -fcs-profile-generate'
8