summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/reinterpret-cast.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2013-12-14 00:46:53 +0000
committerHans Wennborg <hans@hanshq.net>2013-12-14 00:46:53 +0000
commit9b395ef284341ee7f3525bb55f72c8b8e43a85b2 (patch)
tree73f59139554d4f31242c80e4fc2768d56f78e041 /clang/test/SemaCXX/reinterpret-cast.cpp
parent57ae056a5c0d616ee3fd1d8136b74c2854a68a60 (diff)
downloadbcm5719-llvm-9b395ef284341ee7f3525bb55f72c8b8e43a85b2.tar.gz
bcm5719-llvm-9b395ef284341ee7f3525bb55f72c8b8e43a85b2.zip
Don't require -re suffix on -verify directives with regexes.
Differential Revision: http://llvm-reviews.chandlerc.com/D2392 llvm-svn: 197295
Diffstat (limited to 'clang/test/SemaCXX/reinterpret-cast.cpp')
-rw-r--r--clang/test/SemaCXX/reinterpret-cast.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/SemaCXX/reinterpret-cast.cpp b/clang/test/SemaCXX/reinterpret-cast.cpp
index 4284032d9ba..e57433ef344 100644
--- a/clang/test/SemaCXX/reinterpret-cast.cpp
+++ b/clang/test/SemaCXX/reinterpret-cast.cpp
@@ -96,12 +96,12 @@ void memptrs()
void (structure::*psf)() = 0;
(void)reinterpret_cast<int (structure::*)()>(psf);
- (void)reinterpret_cast<void (structure::*)()>(psi); // expected-error-re {{reinterpret_cast from 'const int structure::*' to 'void (structure::*)(){{( __attribute__\(\(thiscall\)\))?}}' is not allowed}}
- (void)reinterpret_cast<int structure::*>(psf); // expected-error-re {{reinterpret_cast from 'void (structure::*)(){{( __attribute__\(\(thiscall\)\))?}}' to 'int structure::*' is not allowed}}
+ (void)reinterpret_cast<void (structure::*)()>(psi); // expected-error {{reinterpret_cast from 'const int structure::*' to 'void (structure::*)(){{( __attribute__\(\(thiscall\)\))?}}' is not allowed}}
+ (void)reinterpret_cast<int structure::*>(psf); // expected-error {{reinterpret_cast from 'void (structure::*)(){{( __attribute__\(\(thiscall\)\))?}}' to 'int structure::*' is not allowed}}
// Cannot cast from integers to member pointers, not even the null pointer
// literal.
- (void)reinterpret_cast<void (structure::*)()>(0); // expected-error-re {{reinterpret_cast from 'int' to 'void (structure::*)(){{( __attribute__\(\(thiscall\)\))?}}' is not allowed}}
+ (void)reinterpret_cast<void (structure::*)()>(0); // expected-error {{reinterpret_cast from 'int' to 'void (structure::*)(){{( __attribute__\(\(thiscall\)\))?}}' is not allowed}}
(void)reinterpret_cast<int structure::*>(0); // expected-error {{reinterpret_cast from 'int' to 'int structure::*' is not allowed}}
}
OpenPOWER on IntegriCloud