Author: lattner
Date: Thu Nov 20 19:05:04 2008
New Revision: 59771
URL: http://llvm.org/viewvc/llvm-project?rev=59771&view=rev
Log:
disable expected-errors in #if parts of the test.
Modified:
cfe/trunk/test/Sema/block-literal.c
Modified: cfe/trunk/test/Sema/block-literal.c
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/block-literal.c?rev=59771&r1=59770&r2=59771&view=diff
==============================================================================
--- cfe/trunk/test/Sema/block-literal.c (original)
+++ cfe/trunk/test/Sema/block-literal.c Thu Nov 20 19:05:04 2008
@@ -86,7 +86,7 @@
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 @@
// 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; };
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits