New testcase for fixed bug
authorChris Lattner <sabre@nondot.org>
Wed, 13 Feb 2002 20:25:16 +0000 (20:25 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 13 Feb 2002 20:25:16 +0000 (20:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1751 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2002-02-13-ConditionalInCall.c [new file with mode: 0644]

diff --git a/test/CFrontend/2002-02-13-ConditionalInCall.c b/test/CFrontend/2002-02-13-ConditionalInCall.c
new file mode 100644 (file)
index 0000000..24a9f3e
--- /dev/null
@@ -0,0 +1,9 @@
+/* Test problem where bad code was generated with a ?: statement was 
+   in a function call argument */
+
+void foo(int, double, float);
+
+void bar(int x) {
+  foo(x, x ? 1.0 : 12.5, 1.0f);
+}
+