2016-02-25 04:46:36 +08:00
|
|
|
// RUN: %clang -target x86_64-unknown-linux -fwhole-program-vtables -### %s 2>&1 | FileCheck --check-prefix=NO-LTO %s
|
2017-09-14 05:49:17 +08:00
|
|
|
// RUN: %clang_cl --target=x86_64-pc-win32 -fwhole-program-vtables -### -- %s 2>&1 | FileCheck --check-prefix=NO-LTO %s
|
2016-02-25 04:46:36 +08:00
|
|
|
// NO-LTO: invalid argument '-fwhole-program-vtables' only allowed with '-flto'
|
2017-09-14 02:36:07 +08:00
|
|
|
|
|
|
|
// RUN: %clang -target x86_64-unknown-linux -fwhole-program-vtables -flto -### %s 2>&1 | FileCheck --check-prefix=LTO %s
|
2017-09-14 05:49:17 +08:00
|
|
|
// RUN: %clang_cl --target=x86_64-pc-win32 -fwhole-program-vtables -flto -### -- %s 2>&1 | FileCheck --check-prefix=LTO %s
|
2017-09-14 02:36:07 +08:00
|
|
|
// LTO: "-fwhole-program-vtables"
|
|
|
|
|
|
|
|
// RUN: %clang -target x86_64-unknown-linux -fwhole-program-vtables -fno-whole-program-vtables -flto -### %s 2>&1 | FileCheck --check-prefix=LTO-DISABLE %s
|
2017-09-14 05:49:17 +08:00
|
|
|
// 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
|
2017-09-14 02:36:07 +08:00
|
|
|
// LTO-DISABLE-NOT: "-fwhole-program-vtables"
|