diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-22 21:39:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-22 21:39:12 +0000 |
commit | 827a3552a42983c1e02b0efb14fa8436cef8825d (patch) | |
tree | 5beb2521dde900e1f44337aa4976e32bda839a0b /clang/test | |
parent | b7d6491a7eb316aec85704a9e6ccacddd1a0c534 (diff) | |
download | bcm5719-llvm-827a3552a42983c1e02b0efb14fa8436cef8825d.tar.gz bcm5719-llvm-827a3552a42983c1e02b0efb14fa8436cef8825d.zip |
make alias definition logic more similar to functions/globals.
llvm-svn: 67481
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/CodeGen/alias.c | 7 |
1 files changed, 7 insertions, 0 deletions
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"))); + |