[llvm-commits] [test-suite] r117368 - /test-suite/trunk/SingleSource/UnitTests/stmtexpr.cpp
Fariborz Jahanian
fjahanian at apple.com
Tue Oct 26 09:15:59 PDT 2010
Author: fjahanian
Date: Tue Oct 26 11:15:59 2010
New Revision: 117368
URL: http://llvm.org/viewvc/llvm-project?rev=117368&view=rev
Log:
Fixes test.
Modified:
test-suite/trunk/SingleSource/UnitTests/stmtexpr.cpp
Modified: test-suite/trunk/SingleSource/UnitTests/stmtexpr.cpp
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/stmtexpr.cpp?rev=117368&r1=117367&r2=117368&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/stmtexpr.cpp (original)
+++ test-suite/trunk/SingleSource/UnitTests/stmtexpr.cpp Tue Oct 26 11:15:59 2010
@@ -1,23 +1,22 @@
// rdar: //8540501
-extern "C" int printf(...);
extern "C" void abort();
struct A
{
int i;
- A (int j) : i(j) {printf("this = %p A(%d)\n", this, j);}
- A (const A &j) : i(j.i) {printf("this = %p const A&(%d)\n", this, i);}
+ A (int j) : i(j) {}
+ A (const A &j) : i(j.i) {}
A& operator= (const A &j) { i = j.i; abort(); return *this; }
- ~A() { printf("this = %p ~A(%d)\n", this, i); }
+ ~A() { }
};
struct B
{
int i;
B (const A& a) { i = a.i; }
- B() {printf("this = %p B()\n", this);}
- B (const B &j) : i(j.i) {printf("this = %p const B&(%d)\n", this, i);}
- ~B() { printf("this = %p ~B(%d)\n", this, i); }
+ B() {}
+ B (const B &j) : i(j.i) {}
+ ~B() { }
};
A foo(int j)
More information about the llvm-commits
mailing list