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 |
Peter Collingbourne | cb1c5fc | 2017-09-13 21:49:17 +0000 | [diff] [blame] | 2 | // RUN: %clang_cl --target=x86_64-pc-win32 -fwhole-program-vtables -### -- %s 2>&1 | FileCheck --check-prefix=NO-LTO %s |
Peter Collingbourne | fb532b9 | 2016-02-24 20:46:36 +0000 | [diff] [blame] | 3 | // NO-LTO: invalid argument '-fwhole-program-vtables' only allowed with '-flto' |
Peter Collingbourne | a2fa8e4 | 2017-09-13 18:36:07 +0000 | [diff] [blame] | 4 | |
| 5 | // RUN: %clang -target x86_64-unknown-linux -fwhole-program-vtables -flto -### %s 2>&1 | FileCheck --check-prefix=LTO %s |
Peter Collingbourne | cb1c5fc | 2017-09-13 21:49:17 +0000 | [diff] [blame] | 6 | // RUN: %clang_cl --target=x86_64-pc-win32 -fwhole-program-vtables -flto -### -- %s 2>&1 | FileCheck --check-prefix=LTO %s |
Peter Collingbourne | a2fa8e4 | 2017-09-13 18:36:07 +0000 | [diff] [blame] | 7 | // LTO: "-fwhole-program-vtables" |
| 8 | |
| 9 | // RUN: %clang -target x86_64-unknown-linux -fwhole-program-vtables -fno-whole-program-vtables -flto -### %s 2>&1 | FileCheck --check-prefix=LTO-DISABLE %s |
Peter Collingbourne | cb1c5fc | 2017-09-13 21:49:17 +0000 | [diff] [blame] | 10 | // RUN: %clang_cl --target=x86_64-pc-win32 -fwhole-program-vtables -fno-whole-program-vtables -flto -### -- %s 2>&1 | FileCheck --check-prefix=LTO-DISABLE %s |
Peter Collingbourne | a2fa8e4 | 2017-09-13 18:36:07 +0000 | [diff] [blame] | 11 | // LTO-DISABLE-NOT: "-fwhole-program-vtables" |