commit | c58fc4052e16b056ff776444f2eb03f7176cbf27 | [log] [tgz] |
---|---|---|
author | Lauro Ramos Venancio <lauro.venancio@gmail.com> | Tue Feb 19 00:04:15 2008 +0000 |
committer | Lauro Ramos Venancio <lauro.venancio@gmail.com> | Tue Feb 19 00:04:15 2008 +0000 |
tree | 69e834bdfdad8b85ce1d19f24e542962756d4f75 | |
parent | 6200c225e0ab09dfa66154c39dacfbefb0f9a99e [diff] [blame] |
A global without initializer must be emitted as weak. Fix Olden/bh test. llvm-svn: 47292
diff --git a/clang/test/CodeGen/weak-global.c b/clang/test/CodeGen/weak-global.c new file mode 100644 index 0000000..86e551c --- /dev/null +++ b/clang/test/CodeGen/weak-global.c
@@ -0,0 +1,3 @@ +// RUN: clang -emit-llvm < %s | grep weak + +int i;