blob: 509ed74849320241c6746ec23054a50107b090f7 [file] [log] [blame]
Daniel Dunbar0d7b0912009-02-03 21:54:49 +00001// RUN: clang -triple i386-unknown-unknown -emit-llvm -o %t %s &&
Daniel Dunbar219df662008-09-08 23:44:31 +00002// 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
Chris Lattner777f07b2008-12-17 07:32:46 +000013int x(int a) {
Daniel Dunbar219df662008-09-08 23:44:31 +000014}