Daniel Dunbar | 2d6ca8d | 2008-08-21 02:51:29 +0000 | [diff] [blame] | 1 | // RUN: clang -emit-llvm %s -o %t |
Chris Lattner | a21ddb3 | 2007-11-26 01:40:58 +0000 | [diff] [blame] | 2 | // PR1824 |
3 | |||||
4 | int foo(int x, short y) { | ||||
5 | return x ?: y; | ||||
6 | } | ||||
Chris Lattner | 12d152f | 2009-02-13 23:35:32 +0000 | [diff] [blame] | 7 | |
8 | // rdar://6586493 | ||||
9 | float test(float x, int Y) { | ||||
10 | return Y != 0 ? : x; | ||||
11 | } | ||||
12 |