diff options
Diffstat (limited to 'clang/test/CodeGen/attr-weakref.c')
-rw-r--r-- | clang/test/CodeGen/attr-weakref.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGen/attr-weakref.c b/clang/test/CodeGen/attr-weakref.c index 06185e8e34e..c1cc03b668d 100644 --- a/clang/test/CodeGen/attr-weakref.c +++ b/clang/test/CodeGen/attr-weakref.c @@ -52,3 +52,11 @@ void test6_h(void) { void test6_foo(void) { test6_f(); } + +// CHECK: declare extern_weak void @test7_f() +void test7_f(void); +static void test7_g(void) __attribute__((weakref("test7_f"))); +static void *const test7_zed = (void *) &test7_g; +void* test7_h(void) { + return test7_zed; +} |