☰
Debian Codegraph
@
1:22.1.8-2
1:22.1.8-1
1:22.1.7-1
/
/
clang
/
test
/
CodeGen
/
2002-02-13-ConditionalInCall.c
☽
☼
clang/test/CodeGen/2002-02-13-ConditionalInCall.c
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
1
// 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
6
void foo(int, double, float);
7
8
void bar(int x) {
9
foo(x, x ? 1.0 : 12.5, 1.0f);
10
}
11