[llvm-commits] [test-suite] r106257 - in /test-suite/trunk/SingleSource/UnitTests/ObjC++: property-reference.mm property-reference.reference_output
Daniel Dunbar
daniel at zuster.org
Thu Jun 17 17:25:34 PDT 2010
Author: ddunbar
Date: Thu Jun 17 19:25:34 2010
New Revision: 106257
URL: http://llvm.org/viewvc/llvm-project?rev=106257&view=rev
Log:
Make test more deterministic and add reference output.
Added:
test-suite/trunk/SingleSource/UnitTests/ObjC++/property-reference.reference_output
Modified:
test-suite/trunk/SingleSource/UnitTests/ObjC++/property-reference.mm
Modified: test-suite/trunk/SingleSource/UnitTests/ObjC++/property-reference.mm
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/ObjC%2B%2B/property-reference.mm?rev=106257&r1=106256&r2=106257&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/ObjC++/property-reference.mm (original)
+++ test-suite/trunk/SingleSource/UnitTests/ObjC++/property-reference.mm Thu Jun 17 19:25:34 2010
@@ -1,4 +1,4 @@
-#import <Cocoa/Cocoa.h>
+#import <Foundation/Foundation.h>
#import <tr1/memory>
// rdar: //7501812
@@ -56,10 +56,8 @@
ValuePtr valuePtr(new Value(42));
ValueUser* valueUser = [[ValueUser alloc] initWithValue:valuePtr];
-#ifdef __clang__
- ::NSLog(@"The value's amount is %d", (valueUser.value)->GetAmount());
-#endif
- ::NSLog(@"The value's amount is %d", [valueUser value]->GetAmount());
+ printf("The value's amount is %d\n", (valueUser.value)->GetAmount());
+ printf("The value's amount is %d\n", [valueUser value]->GetAmount());
[valueUser release];
Added: test-suite/trunk/SingleSource/UnitTests/ObjC++/property-reference.reference_output
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/ObjC%2B%2B/property-reference.reference_output?rev=106257&view=auto
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/ObjC++/property-reference.reference_output (added)
+++ test-suite/trunk/SingleSource/UnitTests/ObjC++/property-reference.reference_output Thu Jun 17 19:25:34 2010
@@ -0,0 +1,3 @@
+The value's amount is 42
+The value's amount is 42
+exit 0
More information about the llvm-commits
mailing list