]> granicus.if.org Git - clang/commitdiff
disable expected-errors in #if parts of the test.
authorChris Lattner <sabre@nondot.org>
Fri, 21 Nov 2008 01:05:04 +0000 (01:05 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 21 Nov 2008 01:05:04 +0000 (01:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59771 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/block-literal.c

index 7f1579d0cc7d686c9aac6e6f77742d3f03b860b4..6cca26999de4fab610949c9d4e32255ab5528626 100644 (file)
@@ -86,7 +86,7 @@ void (^global_block)(void) = ^{ printf("global x is %d\n", global_x); };
 void test_byref() {
   int i;
   
-  X = ^{| g |};  // expected-error {{use of undeclared identifier 'g'}}
+  X = ^{| g |};  // error {{use of undeclared identifier 'g'}}
 
   X = ^{| i,i,i | };
 
@@ -102,11 +102,11 @@ void *B = ^(int){ A = 0; };
 // Closures can not take return types at this point.
 void test_retvals() {
   // Explicit return value.
-  ^int{};   // expected-error {{closure with explicit return type requires argument list}}
+  ^int{};   // error {{closure with explicit return type requires argument list}}
   X = ^void(){};
 
   // Optional specification of return type.
-  X = ^char{ return 'x'; };  // expected-error {{closure with explicit return type requires argument list}}
+  X = ^char{ return 'x'; };  // error {{closure with explicit return type requires argument list}}
 
   X = ^/*missing declspec*/ *() { return (void*)0; };
   X = ^void*() { return (void*)0; };