diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-08 20:55:34 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-08 20:55:34 +0000 |
commit | 15056364602d1dc8040451e1cd09783f418c7c0a (patch) | |
tree | a5c63a5fe903e39908fd3ca4487c968d50575291 /gcc/testsuite/gcc.dg/c90-init-1.c | |
parent | 0d8bfd85942c83229704d2570b2fb73353c92ac1 (diff) | |
download | gcc-15056364602d1dc8040451e1cd09783f418c7c0a.tar.gz |
* README.Portability: Change "ISO C89" to "ISO C90".
* c-parse.in (primary, initelt): Likewise.
testsuite:
* gcc.dg/c90-init-1.c: Adjust expected error messages.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77499 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/c90-init-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/c90-init-1.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/testsuite/gcc.dg/c90-init-1.c b/gcc/testsuite/gcc.dg/c90-init-1.c index 1ea0bdb4006..68308d3e266 100644 --- a/gcc/testsuite/gcc.dg/c90-init-1.c +++ b/gcc/testsuite/gcc.dg/c90-init-1.c @@ -7,10 +7,10 @@ struct A { int B; short C[2]; }; -int a[10] = { 10, [4] = 15 }; /* { dg-error "ISO C89 forbids specifying subobject to initialize" } */ -struct A b = { .B = 2 }; /* { dg-error "ISO C89 forbids specifying subobject to initialize" } */ -struct A c[] = { [3].C[1] = 1 }; /* { dg-error "ISO C89 forbids specifying subobject to initialize" } */ -struct A d[] = { [4 ... 6].C[0 ... 1] = 2 }; /* { dg-error "(forbids specifying range of elements to initialize)|(ISO C89 forbids specifying subobject to initialize)" } */ +int a[10] = { 10, [4] = 15 }; /* { dg-error "ISO (C89|C90) forbids specifying subobject to initialize" } */ +struct A b = { .B = 2 }; /* { dg-error "ISO (C89|C90) forbids specifying subobject to initialize" } */ +struct A c[] = { [3].C[1] = 1 }; /* { dg-error "ISO (C89|C90) forbids specifying subobject to initialize" } */ +struct A d[] = { [4 ... 6].C[0 ... 1] = 2 }; /* { dg-error "(forbids specifying range of elements to initialize)|(ISO (C89|C90) forbids specifying subobject to initialize)" } */ int e[] = { [2] 2 }; /* { dg-error "use of designated initializer without" } */ struct A f = { C: { 0, 1 } }; /* { dg-error "use of designated initializer with " } */ int g; |