blob: 115cc33b04e10b13b8b3c98599f28418dd0cb1d4 [file] [log] [blame]
Daniel Dunbar3c827a72008-08-05 23:31:02 +00001// RUN: clang -emit-llvm -o - %s | grep -e "^@f" | count 1
2
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}