Fariborz Jahanian | eb96e12 | 2009-07-09 19:59:47 +0000 | [diff] [blame^] | 1 | // RUN: clang-cc -fsyntax-only -Wreorder -verify %s |
| 2 | |
| 3 | struct B {}; |
| 4 | |
| 5 | struct B1 {}; |
| 6 | |
| 7 | class complex : public B, B1 { |
| 8 | public: |
| 9 | complex() : s2(1), // expected-warning {{member 's2' will be initialized after}} |
| 10 | s1(1) , // expected-note {{field s1}} |
| 11 | s3(3), // expected-warning {{member 's3' will be initialized after}} |
| 12 | B1(), // expected-note {{base 'struct B1'}} \ |
| 13 | // expected-warning {{base class 'struct B1' will be initialized after}} |
| 14 | B() {} // expected-note {{base 'struct B'}} |
| 15 | int s1; |
| 16 | int s2; |
| 17 | int s3; |
| 18 | }; |