[llvm-commits] [test-suite] r106490 - /test-suite/trunk/SingleSource/UnitTests/ObjC++/property-reference.mm
Fariborz Jahanian
fjahanian at apple.com
Mon Jun 21 14:47:42 PDT 2010
Author: fjahanian
Date: Mon Jun 21 16:47:42 2010
New Revision: 106490
URL: http://llvm.org/viewvc/llvm-project?rev=106490&view=rev
Log:
Fix test case which Dale mentioned is failing.
Part of code only works with clang; thus guarded
with __clang__.
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=106490&r1=106489&r2=106490&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/ObjC++/property-reference.mm (original)
+++ test-suite/trunk/SingleSource/UnitTests/ObjC++/property-reference.mm Mon Jun 21 16:47:42 2010
@@ -56,7 +56,9 @@
ValuePtr valuePtr(new Value(42));
ValueUser* valueUser = [[ValueUser alloc] initWithValue:valuePtr];
- printf("The value's amount is %d\n", (valueUser.value)->GetAmount());
+#ifdef __clang__
+ volatile int GetAmountVal = (valueUser.value)->GetAmount();
+#endif
printf("The value's amount is %d\n", [valueUser value]->GetAmount());
[valueUser release];
More information about the llvm-commits
mailing list