| 1 | namespace header { |
|---|---|
| 2 | class Z { |
| 3 | public: |
| 4 | Z() { |
| 5 | foo(); |
| 6 | #if !PUREONLY |
| 7 | // expected-warning-re@-2 {{{{^}}Call to virtual function during construction}} |
| 8 | // expected-note-re@-3 {{{{^}}This constructor of an object of type 'Z' has not returned when the virtual method was called}} |
| 9 | // expected-note-re@-4 {{{{^}}Call to virtual function during construction}} |
| 10 | #endif |
| 11 | } |
| 12 | virtual int foo(); |
| 13 | }; |
| 14 | } |
| 15 |