| ! Test for warnings generated when parsing driver options. You can use this file for relatively small tests and to avoid creating |
| ! new test files. |
| |
| ! RUN: %flang -### -S -O4 -ffp-contract=on %s 2>&1 | FileCheck %s |
| |
| ! CHECK: warning: the argument 'on' is not supported for option 'ffp-contract='. Mapping to 'ffp-contract=off' |
| ! CHECK: warning: -O4 is equivalent to -O3 |
| ! CHECK-LABEL: "-fc1" |
| ! CHECK: -ffp-contract=off |
| ! CHECK: -O3 |
| |
| ! RUN: %flang -### -S -fprofile-generate %s 2>&1 | FileCheck -check-prefix=CHECK-PROFILE-GENERATE-LLVM %s |
| ! CHECK-PROFILE-GENERATE-LLVM: "-fprofile-generate" |
| ! RUN: %flang -### -S -fprofile-use=%S %s 2>&1 | FileCheck -check-prefix=CHECK-PROFILE-USE-DIR %s |
| ! CHECK-PROFILE-USE-DIR: "-fprofile-use={{.*}}" |