commit 137ba891bfd52eefe9fcd8e108987ecc782b44a2 parent 5fb1525449fa2103cadc946ff467dec95a3da638 Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Fri, 14 Aug 2015 17:34:41 +0200 Merge branch 'master' of ssh://suckless.org/gitrepos/scc Diffstat:
A | cc1/tests/test003.c | | | 23 | +++++++++++++++++++++++ |
1 file changed, 23 insertions(+), 0 deletions(-)
diff --git a/cc1/tests/test003.c b/cc1/tests/test003.c @@ -0,0 +1,23 @@ +/* +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)(); +}