comparison gcc/testsuite/gcc.dg/enum-incomplete-1.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
11 int 11 int
12 f0 (int i) 12 f0 (int i)
13 { 13 {
14 ve; /* { dg-error "incomplete" } */ 14 ve; /* { dg-error "incomplete" } */
15 vs; /* { dg-error "incomplete" } */ 15 vs; /* { dg-error "incomplete" } */
16 (void) ve; 16 (void) ve; /* { dg-error "incomplete" } */
17 (void) vs; 17 (void) vs; /* { dg-error "incomplete" } */
18 (void) (i ? ve : ve); /* { dg-error "incomplete" } */ 18 (void) (i ? ve : ve); /* { dg-error "incomplete" } */
19 (void) (i ? vs : vs); /* { dg-error "incomplete" } */ 19 (void) (i ? vs : vs); /* { dg-error "incomplete" } */
20 (void) (ve = ve); /* { dg-error "incomplete" } */ 20 (void) (ve = ve); /* { dg-error "incomplete" } */
21 (void) (vs = vs); /* { dg-error "incomplete" } */ 21 (void) (vs = vs); /* { dg-error "incomplete" } */
22 (void) ve, (void) ve; 22 (void) ve, /* { dg-error "incomplete" } */
23 (void) vs, (void) vs; 23 (void) ve; /* { dg-error "incomplete" } */
24 (void) vs, /* { dg-error "incomplete" } */
25 (void) vs; /* { dg-error "incomplete" } */
24 p = &ve; 26 p = &ve;
25 p = &vs; 27 p = &vs;
26 (void) sizeof (ve); /* { dg-error "incomplete" } */ 28 (void) sizeof (ve); /* { dg-error "incomplete" } */
27 (void) sizeof (vs); /* { dg-error "incomplete" } */ 29 (void) sizeof (vs); /* { dg-error "incomplete" } */
28 typeof (ve) *pe; 30 typeof (ve) *pe;