]> granicus.if.org Git - clang/commitdiff
oops, this is the real fix.
authorChris Lattner <sabre@nondot.org>
Thu, 2 Aug 2007 22:41:43 +0000 (22:41 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 2 Aug 2007 22:41:43 +0000 (22:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40766 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/array-constraint.c

index 0369eaef1e821b531e2ecf68ec7d88cf0f5f6218..ed498419068fa6cf42ab097fabf537ac9952632e 100644 (file)
@@ -2,7 +2,7 @@
 
 struct s; 
 struct s* t (struct s z[]) {   // expected-error {{array has incomplete element type}}
-  return z;                    // expected-error {{incompatible pointer type returning}}
+  return z;                    // expected-warning {{incompatible pointer type returning}}
 }
 
 void *k (void l[2]) {          // expected-error {{array has incomplete element type}}