blob: 509ed74849320241c6746ec23054a50107b090f7 [file] [log] [blame]
// RUN: clang -triple i386-unknown-unknown -emit-llvm -o %t %s &&
// RUN: grep -e "@f = alias" %t | count 1 &&
// RUN: grep -e "bitcast (i32 (i32)\\* @f to i32 (float)\\*)" %t | count 1
// <rdar://problem/6140807>
int f(float) __attribute__((weak, alias("x")));
// Make sure we replace uses properly...
int y() {
return f(1.);
}
int x(int a) {
}