diff options
author | Chris Lattner <sabre@nondot.org> | 2008-08-10 01:58:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-08-10 01:58:45 +0000 |
commit | d8803632d248a360a040ff03eff1162988058036 (patch) | |
tree | cd9cf57cece4c599e958f9b0760e3f81efd72f1c /test/Sema/array-init.c | |
parent | d9f6910f4ef37c0e8eeee2a01287d9572c3176ef (diff) |
wrap some long diagnostics, make 'initializer is not a constant' diagnostic
a bit more clear (rdar://5646070)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54606 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/array-init.c')
-rw-r--r-- | test/Sema/array-init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Sema/array-init.c b/test/Sema/array-init.c index c1a789ea5b..7aecdda40e 100644 --- a/test/Sema/array-init.c +++ b/test/Sema/array-init.c @@ -4,8 +4,8 @@ extern int foof() = 1; // expected-error{{illegal initializer (only variables ca static int x, y, z; -static int ary[] = { x, y, z }; // expected-error{{initializer element is not constant}} -int ary2[] = { x, y, z }; // expected-error{{initializer element is not constant}} +static int ary[] = { x, y, z }; // expected-error{{initializer element is not a compile-time constant}} +int ary2[] = { x, y, z }; // expected-error{{initializer element is not a compile-time constant}} extern int fileScopeExtern[3] = { 1, 3, 5 }; // expected-warning{{'extern' variable has an initializer}} |