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