mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 19:26:06 +00:00

Tests that use -O1, -O2 and -O3 would often produce different results with the new pass manager which makes these tests fail. Disable new PM explicitly for these tests. Differential Revision: https://reviews.llvm.org/D58375 llvm-svn: 362580
15 lines
657 B
C++
15 lines
657 B
C++
// Test that we don't emit a bit set entry for a speculative (available_externally) vtable.
|
|
// This does not happen in the Microsoft ABI.
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-linux -O1 -fno-experimental-new-pass-manager -fsanitize=cfi-vcall -fsanitize-trap=cfi-vcall -emit-llvm -o - %s | FileCheck %s
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-linux -O1 -fno-experimental-new-pass-manager -fsanitize=cfi-vcall -fsanitize-trap=cfi-vcall -fsanitize-cfi-cross-dso -emit-llvm -o - %s | FileCheck %s
|
|
|
|
class A {
|
|
public:
|
|
virtual ~A();
|
|
};
|
|
|
|
A a;
|
|
|
|
// CHECK: @_ZTV1A ={{.*}} available_externally
|
|
// CHECK-NOT: !{{.*}} = !{!{{.*}}, [4 x i8*]* @_ZTV1A, i64 16}
|