]> granicus.if.org Git - clang/commitdiff
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)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168669 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/merge-decls.c

index 1a84d33b7943c8ae8653f642c75c4f38daea57e5..da3e245141419b9db7c36c21365b48703c7ba949 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());
+}