aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr118948-1.c
blob: 2a46cf14a2611f962e26ad1808836c9a0017d9b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "" } */

/* PR c/118948 */

/* Used to ICE in tree_expr_nonnegative_p after an error. */

void f(void) {
    int i; /* { dg-note "previous" } */
    for (i = 0; i < 2; i++) ;
    float i; /* { dg-error "conflicting types for" } */
}