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
diff --git a/test/CodeGen/alias.c b/test/CodeGen/alias.c
index 9de1676..8fa788a 100644
--- a/test/CodeGen/alias.c
+++ b/test/CodeGen/alias.c
@@ -23,3 +23,10 @@
 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")));
+