[cfe-commits] r47153 - /cfe/trunk/test/Sema/struct-compat.c

Eli Friedman eli.friedman at gmail.com
Thu Feb 14 22:29:54 PST 2008


Author: efriedma
Date: Fri Feb 15 00:29:53 2008
New Revision: 47153

URL: http://llvm.org/viewvc/llvm-project?rev=47153&view=rev
Log:
Nevermind, these tests work... I messed up my testing.


Modified:
    cfe/trunk/test/Sema/struct-compat.c

Modified: cfe/trunk/test/Sema/struct-compat.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/struct-compat.c?rev=47153&r1=47152&r2=47153&view=diff

==============================================================================
--- cfe/trunk/test/Sema/struct-compat.c (original)
+++ cfe/trunk/test/Sema/struct-compat.c Fri Feb 15 00:29:53 2008
@@ -6,14 +6,12 @@
 
 struct x;
 int a(struct x* b) {
-// FIXME: This test currently fails
 // Per C99 6.7.2.3, since the outer and inner "struct x"es have different
 // scopes, they don't refer to the same type, and are therefore incompatible
-struct x {int a;} *c = b;
+struct x {int a;} *c = b; // expected-warning{{incompatible pointer types}}
 }
 
 struct x {int a;} r;
 int b() {
-// FIXME: This test currently also fails
-struct x {char x;} s = r;
+struct x {char x;} s = r; // expected-error{{incompatible type initializing}}
 }





More information about the cfe-commits mailing list