int menu_over(t_game *g) { int key; init_display(); wrefresh(stdscr); g->display_choose = 0; draw_menu(g); while ((key = getch())) { if (key == 10 && g->display_choose == 0) { retry(g); ft_init_map(g); return (endwin(), 1); } if (key == 10 && g->display_choose == 1) menu_hightscores(g); if (key == 10 && g->display_choose == 2) return (endwin(), 0); func_choose(g, key); draw_menu(g); } return (1); }
static void test() { int a; float b; double d; func(a); func(b); func(d); a = func_choose(a); b = func_choose(b); d = func_choose(d); int c; struct xx { int a; } x, y; c = __builtin_choose_expr(a+3-7, b, x); // expected-error{{'__builtin_choose_expr' requires a constant expression}} c = __builtin_choose_expr(0, b, x); // expected-error{{incompatible type assigning 'struct xx', expected 'int'}} c = __builtin_choose_expr(5+3-7, b, x); y = __builtin_choose_expr(4+3-7, b, x); }