blob: eff69aca2d2f9cceb28c3c1512be75ec31b5d742 [file] [log] [blame]
Daniel Dunbar566a6502008-09-08 23:44:31 +00001// RUN: clang -emit-llvm -o %t %s &&
2// RUN: grep -e "@f = alias" %t | count 1 &&
3// RUN: grep -e "bitcast (i32 (i32)\\* @f to i32 (float)\\*)" %t | count 1
4// <rdar://problem/6140807>
5
6int f(float) __attribute__((weak, alias("x")));
7
8// Make sure we replace uses properly...
9int y() {
10 return f(1.);
11}
12
13int x(int) {
14}