blob: d389371dd3233933fcc25dee7e2ff9a0de98fb58 [file] [log] [blame]
Eric Christopher3883e662011-07-26 22:17:02 +00001// RUN: %clang_cc1 -emit-llvm %s -o /dev/null
2
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