summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/attr-alias-elf.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/attr-alias-elf.c')
-rw-r--r--clang/test/Sema/attr-alias-elf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Sema/attr-alias-elf.c b/clang/test/Sema/attr-alias-elf.c
index 88bd7b70958..01bc1879dc4 100644
--- a/clang/test/Sema/attr-alias-elf.c
+++ b/clang/test/Sema/attr-alias-elf.c
@@ -52,3 +52,7 @@ extern int b3;
extern int a4 __attribute__((alias("b4"))); // expected-error {{alias must point to a defined variable or function}}
typedef int b4;
+
+void test2_bar() {}
+void test2_foo() __attribute__((weak, alias("test2_bar")));
+void test2_zed() __attribute__((alias("test2_foo"))); // expected-warning {{alias will always resolve to test2_bar even if weak definition of alias test2_foo is overridden}}
OpenPOWER on IntegriCloud