Files
clang-p2996/clang/test/CodeGen/conditional-gnu-ext.c
Chris Lattner 2ab40a6207 Fix sema support for the gnu ?: expression with a
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
2007-11-26 01:40:58 +00:00

7 lines
84 B
C

// RUN: clang -emit-llvm %s
// PR1824
int foo(int x, short y) {
return x ?: y;
}