blob: f361088c1cf84cf77315004222b7e91d02a973f3 [file] [log] [blame]
Dan Gohman2d65d352009-08-25 15:38:29 +00001// RUN: %llvmgcc -S %s -o - | llvm-as -o /dev/null
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
3/* 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