[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / CodeGenCXX / 2010-05-10-Var-DbgInfo.cpp
blob2b39e7d78716de86382c64cb49080f4fdf0a89cc
1 // RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited %s -o /dev/null
2 // PR 7104
4 struct A {
5 int Ai;
6 };
8 struct B : public A {};
9 struct C : public B {};
11 const char * f(int C::*){ return ""; }
12 int f(int B::*) { return 1; }
14 struct D : public C {};
16 const char * g(int B::*){ return ""; }
17 int g(int D::*) { return 1; }
19 void test()
21 int i = f(&A::Ai);
23 const char * str = g(&A::Ai);
26 // conversion of B::* to C::* is better than conversion of A::* to C::*
27 typedef void (A::*pmfa)();
28 typedef void (B::*pmfb)();
29 typedef void (C::*pmfc)();
31 struct X {
32 operator pmfa();
33 operator pmfb();
37 void g(pmfc);
39 void test2(X x)
41 g(x);