summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2008-12-01 02:17:22 +0000
committerAnders Carlsson <andersca@mac.com>2008-12-01 02:17:22 +0000
commit1dbffc6e3661938392895c33a28feab5b01ea99e (patch)
treefe8ddeda26db7c2cdb8267812cf2f182a749fedc /clang/test
parent4bb9113da462c857fc962b483a41e3df5dfe74e1 (diff)
downloadbcm5719-llvm-1dbffc6e3661938392895c33a28feab5b01ea99e.tar.gz
bcm5719-llvm-1dbffc6e3661938392895c33a28feab5b01ea99e.zip
Add Sema::isNullPointerConstant which extwarns if necessary. Use it in Sema::CheckConditionalOperands.
llvm-svn: 60319
Diffstat (limited to 'clang/test')
-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