OSDN Git Service

PR c++/20669
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / export1.C
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
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-warning "" } export not implemented