summaryrefslogtreecommitdiff
path: root/clang/test/AST/ByteCode/complex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/AST/ByteCode/complex.cpp')
-rw-r--r--clang/test/AST/ByteCode/complex.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/test/AST/ByteCode/complex.cpp b/clang/test/AST/ByteCode/complex.cpp
index dc93c786dac7..ee11c6214b70 100644
--- a/clang/test/AST/ByteCode/complex.cpp
+++ b/clang/test/AST/ByteCode/complex.cpp
@@ -407,8 +407,7 @@ namespace ComplexConstexpr {
// ref-note {{cannot access real component of null}} \
// expected-note {{read of dereferenced null pointer}}
constexpr float pi = __imag *p; // both-error {{constant expr}} \
- // ref-note {{cannot access imaginary component of null}} \
- // expected-note {{cannot perform pointer arithmetic on null pointer}}
+ // ref-note {{cannot access imaginary component of null}}
constexpr const _Complex double *q = &test3 + 1;
constexpr double qr = __real *q; // ref-error {{constant expr}} \
// ref-note {{cannot access real component of pointer past the end}}