summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/linkage-redecl.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/linkage-redecl.c')
-rw-r--r--test/CodeGen/linkage-redecl.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/linkage-redecl.c b/test/CodeGen/linkage-redecl.c
new file mode 100644
index 0000000..b015ca8
--- /dev/null
+++ b/test/CodeGen/linkage-redecl.c
@@ -0,0 +1,11 @@
+// RUN: clang-cc -emit-llvm %s -o - |grep internal
+
+// C99 6.2.2p3
+// PR3425
+static void f(int x);
+
+void g0() {
+ f(5);
+}
+
+extern void f(int x) { } // still has internal linkage
OpenPOWER on IntegriCloud