blob: 0dad6ff5c2f4b40c3494a4db8a1cbeb52daec284 [file] [log] [blame]
Tanya Lattnere9af5d12004-11-06 22:41:00 +00001// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
2
Chris Lattner11b89dc2002-02-13 20:25:16 +00003/* Test problem where bad code was generated with a ?: statement was
4 in a function call argument */
5
6void foo(int, double, float);
7
8void bar(int x) {
9 foo(x, x ? 1.0 : 12.5, 1.0f);
10}
11