summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/export1.C
blob: 53e7e9b160ce091092db00d32a78a8f7c3192d90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do assemble  }
// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 17 Nov 2000 <nathan@codesourcery.com>


// bug 721, we died horribly when export was used wrongly

struct test {
int export(void);   // { dg-error "" } parse error
};

int test::export(void) // { dg-error "" } parse error
{
return 0;
}

template <class T> class Y;
export template <class T> class X;  // { dg-warning "" } export not implemented