From 30815c536baacc07e925f0aef23a5395883173dc Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Thu, 20 Oct 2011 21:10:27 +0000 Subject: Vendor import of llvm release_30 branch r142614: http://llvm.org/svn/llvm-project/llvm/branches/release_30@142614 --- test/FrontendC++/thunk-linkonce-odr.cpp | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 test/FrontendC++/thunk-linkonce-odr.cpp (limited to 'test/FrontendC++/thunk-linkonce-odr.cpp') diff --git a/test/FrontendC++/thunk-linkonce-odr.cpp b/test/FrontendC++/thunk-linkonce-odr.cpp deleted file mode 100644 index ad72e64aa861..000000000000 --- a/test/FrontendC++/thunk-linkonce-odr.cpp +++ /dev/null @@ -1,33 +0,0 @@ -// RUN: %llvmgxx %s -S -o - | FileCheck %s -// & - -struct A { - virtual int f() { return 1; } -}; - -struct B { - virtual int f() { return 2; } -}; - -struct C : A, B { - virtual int f() { return 3; } -}; - -struct D : C { - virtual int f() { return 4; } -}; - -static int f(D* d) { - B* b = d; - return b->f(); -}; - -int g() { - D d; - return f(&d); -} - -// Thunks should be marked as "linkonce ODR" not "weak". -// -// CHECK: define linkonce_odr i32 @_ZThn{{[48]}}_N1C1fEv -// CHECK: define linkonce_odr i32 @_ZThn{{[48]}}_N1D1fEv -- cgit v1.2.3