summaryrefslogtreecommitdiff
path: root/test/CodeGen/alias.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-22 21:39:12 +0000
committerChris Lattner <sabre@nondot.org>2009-03-22 21:39:12 +0000
commit35f6c136dd5201b87831dcdacc1eb4d2c2de0744 (patch)
treeb10895975c944cebc265afbf75cfed757ef01ed0 /test/CodeGen/alias.c
parentdfe292dbebe84bc3a19dba83e9eef52d56492b0a (diff)
downloadclang-35f6c136dd5201b87831dcdacc1eb4d2c2de0744.tar.gz
make alias definition logic more similar to functions/globals.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67481 91177308-0d34-0410-b5e6-96231b3b80d8
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")));
+