gcc/testsuite/g++.old-deja/g++.pt/export1.C
raw| 1 | // { dg-do assemble } |
| 2 | // Copyright (C) 2000 Free Software Foundation, Inc. |
| 3 | // Contributed by Nathan Sidwell 17 Nov 2000 <[email protected]> |
| 4 | |
| 5 | |
| 6 | // bug 721, we died horribly when export was used wrongly |
| 7 | |
| 8 | struct test { |
| 9 | int export(void); // { dg-error "" } parse error |
| 10 | }; |
| 11 | |
| 12 | int test::export(void) // { dg-error "" } parse error |
| 13 | { |
| 14 | return 0; |
| 15 | } |
| 16 | |
| 17 | template <class T> class Y; |
| 18 | export template <class T> class X; // { dg-message "export" } export not implemented |