From: John McCall Date: Thu, 26 Aug 2010 17:42:30 +0000 (+0000) Subject: ...I forgot to check my new test after adding it, and lo, there's slightly different X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cebc3769077bb22003dc47bd22868d0b4c6ce106;p=clang ...I forgot to check my new test after adding it, and lo, there's slightly different behavior in C than in C++ (which is what the original test case was). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112199 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Parser/declarators.c b/test/Parser/declarators.c index ac960cd263..e245adb7cd 100644 --- a/test/Parser/declarators.c +++ b/test/Parser/declarators.c @@ -96,4 +96,4 @@ void test14a(); void *test14b = (void*)test14a; // Make sure test14a didn't get skipped. // rdar://problem/8358508 -long struct X {} test15(); // expected-error {{'long struct' is invalid}} +long struct X { int x; } test15(); // expected-error {{'long struct' is invalid}}