diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/vla-init-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/vla-init-1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/vla-init-1.c b/gcc/testsuite/gcc.dg/vla-init-1.c index 68e7d651210..316bf98bc68 100644 --- a/gcc/testsuite/gcc.dg/vla-init-1.c +++ b/gcc/testsuite/gcc.dg/vla-init-1.c @@ -10,6 +10,6 @@ void foo (void) { int x[a] = { 1 }; /* { dg-error "variable-sized object may not be initialized" "VLA init" } */ - /* { dg-warning "excess elements in array initializer" "" { target *-*-* } 12 } */ - /* { dg-warning "near initialization" "" { target *-*-* } 12 } */ + /* { dg-warning "excess elements in array initializer" "excess" { target *-*-* } 12 } */ + /* { dg-warning "near initialization" "near" { target *-*-* } 12 } */ } |