diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/wtr-aggr-init-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/wtr-aggr-init-1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/wtr-aggr-init-1.c b/gcc/testsuite/gcc.dg/wtr-aggr-init-1.c index c60a6955003..f17531e8fb9 100644 --- a/gcc/testsuite/gcc.dg/wtr-aggr-init-1.c +++ b/gcc/testsuite/gcc.dg/wtr-aggr-init-1.c @@ -14,7 +14,7 @@ struct foo f0 = { 0, 0 }; static struct foo f1 = { 0, 0 }; void -testfunc1 (void) +testfunc1 () { struct foo f3 = { 0, 0 }; /* { dg-warning "traditional C rejects automatic" "automatic aggregate initialization" } */ static struct foo f4 = { 0, 0 }; @@ -39,7 +39,7 @@ struct foo f7 = { 0, 0 }; static struct foo f8 = { 0, 0 }; void -testfunc2 (void) +testfunc2 () { struct foo f9 = { 0, 0 }; static struct foo f10 = { 0, 0 }; |