blob: 5fe15d177ddde3a25dab982affbc0f39ea519fba [file] [log] [blame]
Daniel Dunbar219df662008-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
Chris Lattner777f07b2008-12-17 07:32:46 +000013int x(int a) {
Daniel Dunbar219df662008-09-08 23:44:31 +000014}