diff options
Diffstat (limited to 'clang/test/CodeGen/alias.c')
-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"))); + |