shithub: scc

Download patch

ref: 83641b5afb00ef76a2b397a2591a705dd1488c7f
parent: 080e69990174ad65f1611d8169a6b1f0f03414ea
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Fri Aug 14 14:23:39 EDT 2015

Add correct output for TEST003

stateless take a look that it even optimize out
the ternary operator.

--- a/cc1/tests/test003.c
+++ b/cc1/tests/test003.c
@@ -2,6 +2,22 @@
 name: TEST003
 description: Select function to call inside ternary operator
 output:
+F1
+X1	F1	foo
+G1	F1	foo	{
+-
+	yI	#I2A
+}
+X2	F1	bar
+G2	F1	bar	{
+-
+	yI	#I18
+}
+X3	F1	main
+G3	F1	main	{
+-
+	yI	G1	cI
+}
 */
 
 int