diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-04-16 15:34:14 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-04-16 15:34:14 +0000 |
commit | 426b5cf16ae97e1cb9c4b459861e35c88908d50e (patch) | |
tree | 21eff07b7d190172bddb71b1e82afc74cbb239af /clang/test | |
parent | 9ac4390bf42fcb0faeda08153912c6990b79cb1a (diff) | |
download | bcm5719-llvm-426b5cf16ae97e1cb9c4b459861e35c88908d50e.tar.gz bcm5719-llvm-426b5cf16ae97e1cb9c4b459861e35c88908d50e.zip |
Ensure that the most recent declaration of a tentative definition wins
when generating a common definition.
llvm-svn: 69287
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/CodeGen/tentative-decls.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/CodeGen/tentative-decls.c b/clang/test/CodeGen/tentative-decls.c index 4604f2f4297..7fb396a5078 100644 --- a/clang/test/CodeGen/tentative-decls.c +++ b/clang/test/CodeGen/tentative-decls.c @@ -25,4 +25,9 @@ int *f1() { return b; } +// Check that the most recent tentative definition wins. +// RUN: grep '@c = common global \[4 x .*\] zeroinitializer' %t && +int c[]; +int c[4]; + // RUN: true |