summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/i-c-e3.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/i-c-e3.c')
-rw-r--r--clang/test/Sema/i-c-e3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Sema/i-c-e3.c b/clang/test/Sema/i-c-e3.c
index 31bb3f81504..c371f4a5cce 100644
--- a/clang/test/Sema/i-c-e3.c
+++ b/clang/test/Sema/i-c-e3.c
@@ -1,3 +1,3 @@
-// RUN: clang %s -fsyntax-only -verify -pedantic
+// RUN: clang %s -fsyntax-only -verify -pedantic-errors
-int a() {int p; *(1 ? &p : (void*)(0 && (a(),1))) = 10;} // expected-error {{not assignable}}
+int a() {int p; *(1 ? &p : (void*)(0 && (a(),1))) = 10;} // expected-error {{null pointer expression is not an integer constant expression (but is allowed as an extension)}} // expected-note{{C does not permit evaluated commas in an integer constant expression}}
OpenPOWER on IntegriCloud