diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/init-desig-obs-2.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/init-desig-obs-2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/init-desig-obs-2.c b/gcc/testsuite/gcc.dg/init-desig-obs-2.c index 04c3b1048e8..4fbd456431e 100644 --- a/gcc/testsuite/gcc.dg/init-desig-obs-2.c +++ b/gcc/testsuite/gcc.dg/init-desig-obs-2.c @@ -5,7 +5,7 @@ /* { dg-options "-std=gnu99 -pedantic" } */ struct s { int a; }; struct s s0 = { .a = 1 }; -struct s s1 = { a: 1 }; /* { dg-warning "warning: obsolete use of designated initializer with ':'" } */ +struct s s1 = { a: 1 }; /* { dg-warning "obsolete use of designated initializer with ':'" } */ int x0[] = { [0] = 1 }; -int x1[] = { [0] 1 }; /* { dg-warning "warning: obsolete use of designated initializer without '='" } */ +int x1[] = { [0] 1 }; /* { dg-warning "obsolete use of designated initializer without '='" } */ |