summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/rdr-6140807-alias-references-forward.c
blob: eff69aca2d2f9cceb28c3c1512be75ec31b5d742 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: clang -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) {
}
OpenPOWER on IntegriCloud