aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/2007-10-01-BuildArrayRef.c
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2014-11-24 09:15:30 +0000
committerDimitry Andric <dim@FreeBSD.org>2014-11-24 09:15:30 +0000
commit9f4dbff6669c8037f3b036bcf580d14f1a4f12a5 (patch)
tree47df2c12b57214af6c31e47404b005675b8b7ffc /test/Sema/2007-10-01-BuildArrayRef.c
parentf73d5f23a889b93d89ddef61ac0995df40286bb8 (diff)
Notes
Diffstat (limited to 'test/Sema/2007-10-01-BuildArrayRef.c')
-rw-r--r--test/Sema/2007-10-01-BuildArrayRef.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Sema/2007-10-01-BuildArrayRef.c b/test/Sema/2007-10-01-BuildArrayRef.c
index 4692731b5c259..2552934f64852 100644
--- a/test/Sema/2007-10-01-BuildArrayRef.c
+++ b/test/Sema/2007-10-01-BuildArrayRef.c
@@ -1,9 +1,9 @@
-// RUN: not %clang_cc1_only -c %s -o - > /dev/null
+// RUN: %clang_cc1 -fsyntax-only -verify %s
// PR 1603
void func()
{
const int *arr;
- arr[0] = 1; // expected-error {{assignment of read-only location}}
+ arr[0] = 1; // expected-error {{read-only variable is not assignable}}
}
struct foo {
@@ -15,6 +15,6 @@ int func2()
{
const struct foo *fp;
fp = &sfoo;
- fp[0].bar = 1; // expected-error {{ assignment of read-only member}}
+ fp[0].bar = 1; // expected-error {{read-only variable is not assignable}}
return sfoo.bar;
}