[cfe-commits] r168669 - /cfe/trunk/test/Sema/merge-decls.c

Rafael Espindola rafael.espindola at gmail.com
Mon Nov 26 17:56:55 PST 2012


Author: rafael
Date: Mon Nov 26 19:56:54 2012
New Revision: 168669

URL: http://llvm.org/viewvc/llvm-project?rev=168669&view=rev
Log:
Add a testcase that r168411 would break.

Modified:
    cfe/trunk/test/Sema/merge-decls.c

Modified: cfe/trunk/test/Sema/merge-decls.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/merge-decls.c?rev=168669&r1=168668&r2=168669&view=diff
==============================================================================
--- cfe/trunk/test/Sema/merge-decls.c (original)
+++ cfe/trunk/test/Sema/merge-decls.c Mon Nov 26 19:56:54 2012
@@ -37,3 +37,14 @@
   int x = sizeof(i6096412);
 }
 
+
+typedef int test1_IA[];
+typedef int test1_A10[10];
+static test1_A10 *test1_f(void);
+void test1_g(void)
+{
+  {
+    extern test1_IA  *test1_f(void);
+  }
+  (void)sizeof(*test1_f());
+}





More information about the cfe-commits mailing list