summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/static-init.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-08-10 01:58:45 +0000
committerChris Lattner <sabre@nondot.org>2008-08-10 01:58:45 +0000
commit28b4294ccff81564064e7ecf79a1efae102e769a (patch)
treedbc29ea78f18b192076c73c827ebbf424ff3decb /clang/test/Sema/static-init.c
parent6307f197266f944f0637aa8b152cf9d26ab43266 (diff)
downloadbcm5719-llvm-28b4294ccff81564064e7ecf79a1efae102e769a.tar.gz
bcm5719-llvm-28b4294ccff81564064e7ecf79a1efae102e769a.zip
wrap some long diagnostics, make 'initializer is not a constant' diagnostic
a bit more clear (rdar://5646070) llvm-svn: 54606
Diffstat (limited to 'clang/test/Sema/static-init.c')
-rw-r--r--clang/test/Sema/static-init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Sema/static-init.c b/clang/test/Sema/static-init.c
index 2439d5e714e..2f1380062d3 100644
--- a/clang/test/Sema/static-init.c
+++ b/clang/test/Sema/static-init.c
@@ -1,7 +1,7 @@
// RUN: clang -fsyntax-only -verify %s
static int f = 10;
-static int b = f; // expected-error {{initializer element is not constant}}
+static int b = f; // expected-error {{initializer element is not a compile-time constant}}
-float r = (float) &r; // expected-error {{initializer element is not constant}}
+float r = (float) &r; // expected-error {{initializer element is not a compile-time constant}}
long long s = (long long) &s;
_Bool t = &t;
OpenPOWER on IntegriCloud