gcc/testsuite/g++.dg/parse/error13.C
raw| 1 | // { dg-options "-fshow-column" } |
| 2 | // PR c++/13975 |
| 3 | |
| 4 | public: // { dg-error "1:expected unqualified-id before 'public'" } |
| 5 | |
| 6 | int i; |
| 7 | |
| 8 | protected: // { dg-error "1:expected unqualified-id before 'protected'" } |
| 9 | |
| 10 | int j; |
| 11 | |
| 12 | private: // { dg-error "1:expected unqualified-id before 'private'" } |
| 13 | |
| 14 | int k; |