diff options
Diffstat (limited to 'clang/test/CodeGen/linkage-redecl.c')
-rw-r--r-- | clang/test/CodeGen/linkage-redecl.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/CodeGen/linkage-redecl.c b/clang/test/CodeGen/linkage-redecl.c new file mode 100644 index 0000000..09b51f0 --- /dev/null +++ b/clang/test/CodeGen/linkage-redecl.c @@ -0,0 +1,11 @@ +// RUN: %clang_cc1 -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 |