gcc/testsuite/g++.old-deja/g++.mike/misc9.C
raw| 1 | // { dg-do assemble } |
| 2 | // { dg-options "-Wall -pedantic" } |
| 3 | // GROUPS passed qualifiers |
| 4 | class bee { |
| 5 | public: |
| 6 | int bee::bar; // { dg-error "extra" } there is an extra bee:: here |
| 7 | }; |
| 8 | |
| 9 | class foo { |
| 10 | public: |
| 11 | int bee::bar; // { dg-error "invalid use" } you cannot do this |
| 12 | int me(); |
| 13 | }; |