diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-03-04 18:17:24 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-03-04 18:17:24 +0000 |
commit | 6a836706c40a31c716952b74785102c90fd6afa7 (patch) | |
tree | 0bf2cd48bb154ba356a78486b16bea3ff30349cf /test/CodeGen/attributes.c | |
parent | 0ea271c35207d023999fa1f7efbb1652f7779aa5 (diff) |
Fix PR6473.
Clang's support for weakref is now better than llvm-gcc's :-)
We don't introduce a new symbol and we correctly mark undefined references weak only if there is no
definition or regular undefined references in the same file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97733 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/attributes.c')
-rw-r--r-- | test/CodeGen/attributes.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/test/CodeGen/attributes.c b/test/CodeGen/attributes.c index 4fdf1a5176..770ce766df 100644 --- a/test/CodeGen/attributes.c +++ b/test/CodeGen/attributes.c @@ -30,12 +30,6 @@ int t12 __attribute__((section("SECT"))); void __t8() {} void t9() __attribute__((weak, alias("__t8"))); -static void t22(void) __attribute__((weakref("t8"))); -// CHECK: @t22 = alias weak void ()* @t8 - -static void t23(void) __attribute__((weakref, alias("t8"))); -// CHECK: @t23 = alias weak void ()* @t8 - // CHECK: declare extern_weak i32 @t15() int __attribute__((weak_import)) t15(void); int t17() { |