From: Chris Lattner Date: Fri, 21 Nov 2008 01:05:04 +0000 (+0000) Subject: disable expected-errors in #if parts of the test. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=966f099f903cdd214a2115a685735c3c24015965;p=clang disable expected-errors in #if parts of the test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59771 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Sema/block-literal.c b/test/Sema/block-literal.c index 7f1579d0cc..6cca26999d 100644 --- a/test/Sema/block-literal.c +++ b/test/Sema/block-literal.c @@ -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; };