Peter Collingbourne | fb532b9 | 2016-02-24 20:46:36 +0000 | [diff] [blame^] | 1 | // RUN: %clang -target x86_64-unknown-linux -fwhole-program-vtables -### %s 2>&1 | FileCheck --check-prefix=NO-LTO %s |
| 2 | // NO-LTO: invalid argument '-fwhole-program-vtables' only allowed with '-flto' |
| 3 | |
| 4 | // RUN: %clang -target x86_64-unknown-linux -resource-dir=%S/Inputs/resource_dir -flto -fwhole-program-vtables -### -c %s 2>&1 | FileCheck --check-prefix=BLACKLIST %s |
| 5 | // BLACKLIST: "-fwhole-program-vtables-blacklist={{.*}}vtables_blacklist.txt" |
| 6 | |
| 7 | // RUN: %clang -target x86_64-unknown-linux -fwhole-program-vtables-blacklist=nonexistent.txt -flto -fwhole-program-vtables -### -c %s 2>&1 | FileCheck --check-prefix=NON-EXISTENT-BLACKLIST %s |
| 8 | // NON-EXISTENT-BLACKLIST: no such file or directory: 'nonexistent.txt' |
| 9 | |
| 10 | // RUN: %clang -target x86_64-unknown-linux -fwhole-program-vtables-blacklist=%S/Inputs/resource_dir/vtables_blacklist.txt -flto -fwhole-program-vtables -### -c %s 2>&1 | FileCheck --check-prefix=CUSTOM-BLACKLIST %s |
| 11 | // CUSTOM-BLACKLIST: "-fwhole-program-vtables-blacklist={{.*}}Inputs/resource_dir/vtables_blacklist.txt" |