diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-02-23 22:00:30 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-02-23 22:00:30 +0000 |
commit | 11e8ce7380856abee188b237c2600272df2ed09d (patch) | |
tree | 189aaf5995f111e141000cdc9ebb8cea4de1ae63 /test/CodeGen/attributes.c | |
parent | 2a7eb28397148079cbc8e54e8a3871ef01c4f4bc (diff) |
Add support for the weakref attribute. We still produce "alias weak" as llvm-gcc does, but are more strict on what uses of weakref we accept.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96992 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/attributes.c')
-rw-r--r-- | test/CodeGen/attributes.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/attributes.c b/test/CodeGen/attributes.c index 770ce766df..4fdf1a5176 100644 --- a/test/CodeGen/attributes.c +++ b/test/CodeGen/attributes.c @@ -30,6 +30,12 @@ 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() { |