summaryrefslogtreecommitdiffstats
path: root/test/Sema/2007-10-01-BuildArrayRef.c
diff options
context:
space:
mode:
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 4692731..2552934 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;
}
OpenPOWER on IntegriCloud