clang/test/Driver/fprofile-generate-temporal.c
raw| 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' |