[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / SemaCXX / builtin-ptrtomember-ambig.cpp
blob4330c0cc48aa51d0ddee965d9a37ec2e52fb2845
1 // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11
3 struct A {};
5 struct R {
6 operator const A*();
7 };
10 struct B : R {
11 operator A*();
14 struct C : B {
19 void foo(C c, int A::* pmf) {
20 int i = c->*pmf; // expected-error {{use of overloaded operator '->*' is ambiguous}} \
21 // expected-note {{built-in candidate operator->*(const struct A *, int struct A::*)}} \
22 // expected-note {{built-in candidate operator->*(struct A *, int struct A::*)}}