Add a testcase that r168411 would break.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 27 Nov 2012 01:56:54 +0000 (01:56 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 27 Nov 2012 01:56:54 +0000 (01:56 +0000)
llvm-svn: 168669

clang/test/Sema/merge-decls.c

index 1a84d33..da3e245 100644 (file)
@@ -37,3 +37,14 @@ void foo6096412(void) {
   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());
+}