[cfe-commits] r39287 - /cfe/cfe/trunk/test/Parser/struct-recursion.c

sabre at cs.uiuc.edu sabre at cs.uiuc.edu
Wed Jul 11 09:42:31 PDT 2007


Author: sabre
Date: Wed Jul 11 11:42:30 2007
New Revision: 39287

URL: http://llvm.org/viewvc/llvm-project?rev=39287&view=rev
Log:
new testcase

Added:
    cfe/cfe/trunk/test/Parser/struct-recursion.c   (with props)

Added: cfe/cfe/trunk/test/Parser/struct-recursion.c
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/test/Parser/struct-recursion.c?rev=39287&view=auto

==============================================================================
--- cfe/cfe/trunk/test/Parser/struct-recursion.c (added)
+++ cfe/cfe/trunk/test/Parser/struct-recursion.c Wed Jul 11 11:42:30 2007
@@ -0,0 +1,11 @@
+// RUN: clang %s -fsyntax-only
+
+// C99 6.7.2.3p11
+
+// mutually recursive structs
+struct s1 { struct s2 *A; };
+struct s2 { struct s1 *B; };
+
+// both types are complete now.
+struct s1 a;
+struct s2 b;

Propchange: cfe/cfe/trunk/test/Parser/struct-recursion.c

------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cfe/cfe/trunk/test/Parser/struct-recursion.c

------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision





More information about the cfe-commits mailing list