summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/drs/dr0xx.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-10-21 23:01:04 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-10-21 23:01:04 +0000
commitd20f1e6dd3153e2cda30addf79fb9f781a3449aa (patch)
treeb1f7cfba70b80a77bf894519ee9e408afb70cd6b /clang/test/CXX/drs/dr0xx.cpp
parent7c93690be029a86d98cdad59ec4cb858c47e284f (diff)
downloadbcm5719-llvm-d20f1e6dd3153e2cda30addf79fb9f781a3449aa.tar.gz
bcm5719-llvm-d20f1e6dd3153e2cda30addf79fb9f781a3449aa.zip
PR21327 / C++ DR1652 / C++ DR73: comparing a past-the-end pointer for one
complete object to a pointer to the start of another complete object does not evaluate to the constant 'false'. All other comparisons between the addresses of subobjects of distinct complete objects still do. llvm-svn: 220343
Diffstat (limited to 'clang/test/CXX/drs/dr0xx.cpp')
-rw-r--r--clang/test/CXX/drs/dr0xx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CXX/drs/dr0xx.cpp b/clang/test/CXX/drs/dr0xx.cpp
index 781c1883ff8..011b4201b0b 100644
--- a/clang/test/CXX/drs/dr0xx.cpp
+++ b/clang/test/CXX/drs/dr0xx.cpp
@@ -823,7 +823,7 @@ namespace dr70 { // dr70: yes
namespace dr73 { // dr73: no
// The resolution to dr73 is unworkable. Consider:
int a, b;
- static_assert(&a + 1 != &b, "");
+ static_assert(&a + 1 != &b, ""); // expected-error {{not an integral constant expression}}
}
#endif
OpenPOWER on IntegriCloud