shithub: scc

ref: 36fbb9b46ef9beed84eb0f14588c8cebc1c92c81
dir: /cc1/tests/test003.c/

View raw version
/*
name: TEST003
description: Select function to call inside ternary operator
output:
F1
G1	F1	foo
{
-
	yI	#I2A
}
G2	F1	bar
{
-
	yI	#I18
}
G3	F1	main
{
-
	yI	G1	cI
}
*/

int
foo(void)
{
	return 42;
}

int
bar(void)
{
	return 24;
}

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