shithub: scc

ref: 2fad6a4bf9c95e020df930acd1691c295b173ac1
dir: /cc1/tests/test003.c/

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

int
foo(void)
{
	return 42;
}

int
bar(void)
{
	return 24;
}

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