summaryrefslogtreecommitdiff
path: root/test/CodeGen/alias.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/alias.c')
-rw-r--r--test/CodeGen/alias.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/alias.c b/test/CodeGen/alias.c
index 9de1676f4d..8fa788a6a2 100644
--- a/test/CodeGen/alias.c
+++ b/test/CodeGen/alias.c
@@ -23,3 +23,10 @@ int foo() __attribute__((alias("foo1")));
static inline int bar1 = 42;
int bar() __attribute__((alias("bar1")));
+
+extern int test6();
+void test7() { test6(); } // test6 is emitted as extern.
+
+// test6 changes to alias.
+int test6() __attribute__((alias("test7")));
+