1// { dg-do assemble } 2// Copyright (C) 2000 Free Software Foundation, Inc. 3// Contributed by Nathan Sidwell 17 Nov 2000 <nathan@codesourcery.com> 4 5 6// bug 721, we died horribly when export was used wrongly 7 8struct test { 9int export(void); // { dg-error "" } parse error 10}; 11 12int test::export(void) // { dg-error "" } parse error 13{ 14return 0; 15} 16 17template <class T> class Y; 18export template <class T> class X; // { dg-warning "" } export not implemented 19