diff options
Diffstat (limited to 'test/CodeGen/linkage-redecl.c')
-rw-r--r-- | test/CodeGen/linkage-redecl.c | 11 |
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 000000000000..b015ca854737 --- /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 |