shithub: scc

Download patch

ref: 137ba891bfd52eefe9fcd8e108987ecc782b44a2
parent: 5fb1525449fa2103cadc946ff467dec95a3da638
parent: 287d81cca3ddb6386c8fb4712a46d7e7cb01e7bd
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri Aug 14 13:34:41 EDT 2015

Merge branch 'master' of ssh://suckless.org/gitrepos/scc

--- /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)();
+}