]> granicus.if.org Git - clang/commitdiff
Fix MSVC bots which include '__attribute__((thiscall))' in pretty-printed member...
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 25 Aug 2017 01:55:50 +0000 (01:55 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 25 Aug 2017 01:55:50 +0000 (01:55 +0000)
We really shouldn't be including inferred calling conventions here, but let's get the bots green first...

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311746 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/cxx2a-pointer-to-const-ref-member.cpp

index 06fa4828f42f98ba760ec6c551bfcd2858c326b5..e9cbb1a18532f2475a7a04ef51bdad8b4446ae05 100644 (file)
@@ -9,6 +9,6 @@ void test() {
   X{}.ref(); // expected-error{{cannot initialize object parameter of type 'X' with an expression of type 'X'}}
   X{}.cref(); // expected-no-error
 
-  (X{}.*&X::ref)(); // expected-error{{pointer-to-member function type 'void (X::*)() &' can only be called on an lvalue}}
+  (X{}.*&X::ref)(); // expected-error-re{{pointer-to-member function type 'void (X::*)() {{.*}}&' can only be called on an lvalue}}
   (X{}.*&X::cref)(); // expected-no-error
 }