ref: 287d81cca3ddb6386c8fb4712a46d7e7cb01e7bd
parent: a2edadd2f36ac7cd89027252bdc63f459112ec1a
author: sin <sin@2f30.org>
date: Fri Aug 14 12:26:20 EDT 2015
Add test for ternary operator The test is currently failing.
--- /dev/null
+++ b/cc1/tests/test003.c
@@ -1,0 +1,23 @@
+/*
+name: TEST003
+description: Select function to call inside ternary operator
+output:
+*/
+
+int
+foo(void)
+{
+ return 42;
+}
+
+int
+bar(void)
+{
+ return 24;
+}
+
+int
+main(void)
+{
+ return (1 ? foo : bar)();
+}