Further tweaking of diagnostic text for casts performing reinterpret_cast
conversions in constant expressions.
llvm-svn: 146406
diff --git a/clang/test/SemaCXX/constant-expression-cxx11.cpp b/clang/test/SemaCXX/constant-expression-cxx11.cpp
index 3ba76d4..a7a53e1 100644
--- a/clang/test/SemaCXX/constant-expression-cxx11.cpp
+++ b/clang/test/SemaCXX/constant-expression-cxx11.cpp
@@ -307,16 +307,16 @@
expected-note {{reinterpret_cast is not allowed in a constant expression}}
int c : (S*)(long)(sptr) == (S*)(long)(sptr); // \
expected-warning {{not integer constant expression}} \
- expected-note {{cast interpreted as a reinterpret_cast is not allowed in a constant expression}}
+ expected-note {{cast which performs the conversions of a reinterpret_cast is not allowed in a constant expression}}
int d : (S*)(42) == (S*)(42); // \
expected-warning {{not integer constant expression}} \
- expected-note {{cast interpreted as a reinterpret_cast is not allowed in a constant expression}}
+ expected-note {{cast which performs the conversions of a reinterpret_cast is not allowed in a constant expression}}
int e : (Str*)(sptr) == (Str*)(sptr); // \
expected-warning {{not integer constant expression}} \
- expected-note {{cast interpreted as a reinterpret_cast is not allowed in a constant expression}}
+ expected-note {{cast which performs the conversions of a reinterpret_cast is not allowed in a constant expression}}
int f : &(Str&)(*sptr) == &(Str&)(*sptr); // \
expected-warning {{not integer constant expression}} \
- expected-note {{cast interpreted as a reinterpret_cast is not allowed in a constant expression}}
+ expected-note {{cast which performs the conversions of a reinterpret_cast is not allowed in a constant expression}}
int g : (S*)(void*)(sptr) == sptr; // \
expected-warning {{not integer constant expression}} \
expected-note {{cast from 'void *' is not allowed in a constant expression}}