mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-06 18:51:34 +00:00
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;
|
|
}
|