blob: 43f4e3ecedae08d63049d9942678fcf99ba1a7cd [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc -emit-llvm -o - %s | grep -e "^@f" | count 1
Daniel Dunbar3c827a72008-08-05 23:31:02 +00002
3int x() {}
4
5int f() __attribute__((weak, alias("x")));
6
7/* Test that we link to the alias correctly instead of making a new
8 forward definition. */
9int f();
10int h() {
11 return f();
12}