shithub: scc

ref: a1f4b88d0fd4e5d3b1b537f69db56fc282a2964f
dir: /cc1/tests/test003.c/

View raw version
/*
name: TEST003
description: Select function to call inside ternary operator
error:
output:
F1	I
G2	F1	"foo
{
\
	r	#I2A
}
G3	F1	"bar
{
\
	r	#I18
}
G4	F1	"main
{
\
	r	G2	cI
}
*/

int
foo(void)
{
	return 42;
}

int
bar(void)
{
	return 24;
}

int
main(void)
{
	return (1 ? foo : bar)();
}