diff options
Diffstat (limited to 'clang/test/Sema/vla.c')
| -rw-r--r-- | clang/test/Sema/vla.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/Sema/vla.c b/clang/test/Sema/vla.c index 4fd636122f3..e03dda8c5f6 100644 --- a/clang/test/Sema/vla.c +++ b/clang/test/Sema/vla.c @@ -19,7 +19,7 @@ int x = sizeof(struct{char qq[x];}); // expected-error {{fields must have a cons // PR2352 void f2(unsigned int m) { - extern int e1[2][m]; // expected-error {{variable length array declaration can not have 'extern' linkage}} + extern int e1[2][m]; // expected-error {{variable length array declaration cannot have 'extern' linkage}} e1[0][0] = 0; @@ -34,10 +34,10 @@ int (*e)[i]; // expected-error {{variably modified type declaration not allowed void f3() { - static int a[i]; // expected-error {{variable length array declaration can not have 'static' storage duration}} - extern int b[i]; // expected-error {{variable length array declaration can not have 'extern' linkage}} + static int a[i]; // expected-error {{variable length array declaration cannot have 'static' storage duration}} + extern int b[i]; // expected-error {{variable length array declaration cannot have 'extern' linkage}} - extern int (*c1)[i]; // expected-error {{variably modified type declaration can not have 'extern' linkage}} + extern int (*c1)[i]; // expected-error {{variably modified type declaration cannot have 'extern' linkage}} static int (*d)[i]; } |

