[llvm-commits] [test-suite] r109397 - /test-suite/trunk/SingleSource/UnitTests/block-call-r7674133.cpp
Fariborz Jahanian
fjahanian at apple.com
Mon Jul 26 10:14:50 PDT 2010
Author: fjahanian
Date: Mon Jul 26 12:14:50 2010
New Revision: 109397
URL: http://llvm.org/viewvc/llvm-project?rev=109397&view=rev
Log:
This test is only for when blocks are enabled.
Modified:
test-suite/trunk/SingleSource/UnitTests/block-call-r7674133.cpp
Modified: test-suite/trunk/SingleSource/UnitTests/block-call-r7674133.cpp
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/block-call-r7674133.cpp?rev=109397&r1=109396&r2=109397&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/block-call-r7674133.cpp (original)
+++ test-suite/trunk/SingleSource/UnitTests/block-call-r7674133.cpp Mon Jul 26 12:14:50 2010
@@ -1,4 +1,4 @@
-#ifdef __clang__
+#if defined(__BLOCKS__) && defined(__clang__)
extern "C" void abort(void);
class Test {
@@ -10,7 +10,7 @@
~Test()
{
- i = -1;;
+ i = -1;
}
Test(const Test&r)
@@ -28,7 +28,7 @@
int main (int , char * const [])
{
-#ifdef __clang__
+#if defined(__BLOCKS__) && defined(__clang__)
Test t;
^{ t.speak(); }();
#endif
More information about the llvm-commits
mailing list