aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/conditional-gnu-ext.c
blob: c3ff2bdccc5f974efae2b445cb31459494067e8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: clang -emit-llvm %s -o %t
// PR1824

int foo(int x, short y) {
  return x ?: y;
}

// rdar://6586493
float test(float x, int Y) {
  return Y != 0 ? : x;
}