1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 // In addition, if class T has a user-declared constructor (12.1),
4 // every non-static data member of class T shall have a name different
12 int X1
; // expected-error{{member 'X1' has the same name as its class}}
18 float X2
; // expected-error{{member 'X2' has the same name as its class}}