shithub: scc

ref: 080e69990174ad65f1611d8169a6b1f0f03414ea
dir: /cc1/tests/test003.c/

View raw version
/*
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)();
}