]> granicus.if.org Git - clang/commitdiff
...I forgot to check my new test after adding it, and lo, there's slightly different
authorJohn McCall <rjmccall@apple.com>
Thu, 26 Aug 2010 17:42:30 +0000 (17:42 +0000)
committerJohn McCall <rjmccall@apple.com>
Thu, 26 Aug 2010 17:42:30 +0000 (17:42 +0000)
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

test/Parser/declarators.c

index ac960cd263fef68f328ce9f9fb7fe242e00e8d0a..e245adb7cded037dc62a9e236517b65f4a6a2044 100644 (file)
@@ -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}}