[llvm-branch-commits] [llvm-branch] r102968 - /llvm/branches/Apple/Morbo/test/FrontendC++/thunk-weak-odr.cpp

Bill Wendling isanbard at gmail.com
Mon May 3 15:28:45 PDT 2010


Author: void
Date: Mon May  3 17:28:45 2010
New Revision: 102968

URL: http://llvm.org/viewvc/llvm-project?rev=102968&view=rev
Log:
Remove test for r102947.

Removed:
    llvm/branches/Apple/Morbo/test/FrontendC++/thunk-weak-odr.cpp

Removed: llvm/branches/Apple/Morbo/test/FrontendC++/thunk-weak-odr.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Morbo/test/FrontendC%2B%2B/thunk-weak-odr.cpp?rev=102967&view=auto
==============================================================================
--- llvm/branches/Apple/Morbo/test/FrontendC++/thunk-weak-odr.cpp (original)
+++ llvm/branches/Apple/Morbo/test/FrontendC++/thunk-weak-odr.cpp (removed)
@@ -1,32 +0,0 @@
-// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | FileCheck %s
-// <rdar://problem/7929157>
-
-// Thunks should be marked as "ODR".
-
-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);
-}
-
-// CHECK: define weak_odr {{.*}} @_ZThn8_N1D1fEv





More information about the llvm-branch-commits mailing list