From 827a3552a42983c1e02b0efb14fa8436cef8825d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 22 Mar 2009 21:39:12 +0000 Subject: make alias definition logic more similar to functions/globals. llvm-svn: 67481 --- clang/test/CodeGen/alias.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'clang/test/CodeGen/alias.c') diff --git a/clang/test/CodeGen/alias.c b/clang/test/CodeGen/alias.c index 9de1676f4d0..8fa788a6a21 100644 --- a/clang/test/CodeGen/alias.c +++ b/clang/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"))); + -- cgit v1.2.3