view gcc/testsuite/gcc.dg/pr24293.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { dg-do compile } */
/* { dg-options "-fsyntax-only" } */

static struct foo x;  /* { dg-error "storage size of 'x' isn't known" } */
static union bar y;  /* { dg-error "storage size of 'y' isn't known" } */

typedef struct P p;
static p p_obj;  /* { dg-error "storage size of 'p_obj' isn't known" } */

static enum e e_var; /* { dg-error "storage size of 'e_var' isn't known" } */

extern struct undefined_object object;