diff options
| author | Hans Wennborg <hans@hanshq.net> | 2013-12-13 18:34:23 +0000 |
|---|---|---|
| committer | Hans Wennborg <hans@hanshq.net> | 2013-12-13 18:34:23 +0000 |
| commit | 86be54cc80e58929a0f5fd7e6ffc178e6cdba143 (patch) | |
| tree | 7d3be3030ba7b70480ef16cbb716972dd9b55c67 /clang/test/SemaCXX/static-cast.cpp | |
| parent | 059021a36937788d4951b74a663f0a0621aa85bc (diff) | |
| download | bcm5719-llvm-86be54cc80e58929a0f5fd7e6ffc178e6cdba143.tar.gz bcm5719-llvm-86be54cc80e58929a0f5fd7e6ffc178e6cdba143.zip | |
Tighten test regexes checking for __attribute__((thiscall)) on function types.
The tests were perhaps made too relaxed in r197164 when we switched to the new
MinGW ABI. This makes sure we check explicitly for an optional thiscall
attribute and nothing else.
We should still look into whether we should print these attributes at all in
these cases.
llvm-svn: 197252
Diffstat (limited to 'clang/test/SemaCXX/static-cast.cpp')
| -rw-r--r-- | clang/test/SemaCXX/static-cast.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/static-cast.cpp b/clang/test/SemaCXX/static-cast.cpp index 8cd27a13a05..03ee160ca3e 100644 --- a/clang/test/SemaCXX/static-cast.cpp +++ b/clang/test/SemaCXX/static-cast.cpp @@ -192,6 +192,6 @@ namespace PR6072 { (void)static_cast<void (A::*)()>(&B::f); (void)static_cast<void (B::*)()>(&B::f); (void)static_cast<void (C::*)()>(&B::f); - (void)static_cast<void (D::*)()>(&B::f); // expected-error-re{{address of overloaded function 'f' cannot be static_cast to type 'void (PR6072::D::*)(){{.*}}'}} + (void)static_cast<void (D::*)()>(&B::f); // expected-error-re{{address of overloaded function 'f' cannot be static_cast to type 'void (PR6072::D::*)(){{( __attribute__\(\(thiscall\)\))?}}'}} } } |

