missing middle expression, and fix a codegen bug where we didn't correctly promote the condition to the right result type. This fixes PR1824. llvm-svn: 44322
7 lines
84 B
C
7 lines
84 B
C
// RUN: clang -emit-llvm %s
|
|
// PR1824
|
|
|
|
int foo(int x, short y) {
|
|
return x ?: y;
|
|
}
|