Skip to content

Commit

Permalink
Fix MSVC bots which include '__attribute__((thiscall))' in pretty-pri…
Browse files Browse the repository at this point in the history
…nted member function types.

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
  • Loading branch information
zygoloid committed Aug 25, 2017
1 parent 919821d commit 2154e38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/SemaCXX/cxx2a-pointer-to-const-ref-member.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 2154e38

Please sign in to comment.