]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/Wcxx-compat-20.c
replace ISL with isl
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / Wcxx-compat-20.c
CommitLineData
51f4ec66
SZ
1/* { dg-do compile } */
2/* { dg-options "-Wc++-compat" } */
3typedef struct s { const int i; } s; /* { dg-message "should be initialized" } */
4union u {const int a; double b;}; /* { dg-message "should be initialized" } */
5struct ts { int a; s v;};
6struct ta { int a; s v[2];};
7
8void f ()
9{
10 s v1; /* { dg-warning "uninitialized const member in" } */
11 s va[2]; /* { dg-warning "uninitialized const member in" } */
12 union u v2; /* { dg-warning "uninitialized const member in" } */
13 struct ts v3; /* { dg-warning "uninitialized const member in" } */
14 struct ta ta[2]; /* { dg-warning "uninitialized const member in" } */
15}