xref: /minix3/external/bsd/llvm/dist/clang/test/CXX/class.derived/class.member.lookup/p7.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -verify %s
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc // expected-no-diagnostics
4*f4a2713aSLionel Sambuc 
5*f4a2713aSLionel Sambuc struct A { int n; };
6*f4a2713aSLionel Sambuc struct B { float n; };
7*f4a2713aSLionel Sambuc struct C : A, B {};
8*f4a2713aSLionel Sambuc struct D : virtual C {};
9*f4a2713aSLionel Sambuc struct E : virtual C { char n; };
10*f4a2713aSLionel Sambuc struct F : D, E {} f;
11*f4a2713aSLionel Sambuc char &k = f.n;
12