summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/nullptr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/nullptr.cpp')
-rw-r--r--clang/test/SemaCXX/nullptr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/nullptr.cpp b/clang/test/SemaCXX/nullptr.cpp
index d148f76698e..b49f63b9805 100644
--- a/clang/test/SemaCXX/nullptr.cpp
+++ b/clang/test/SemaCXX/nullptr.cpp
@@ -57,7 +57,7 @@ nullptr_t f(nullptr_t null)
o2(nullptr); // expected-error {{ambiguous}}
// nullptr is an rvalue, null is an lvalue
- (void)&nullptr; // expected-error {{address expression must be an lvalue}}
+ (void)&nullptr; // expected-error {{cannot take the address of an rvalue of type 'nullptr_t'}}
nullptr_t *pn = &null;
// You can reinterpret_cast nullptr to an integer.
OpenPOWER on IntegriCloud