export1.C   [plain text]


// Build don't link:
// 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);   // ERROR - parse error
};

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

template <class T> class Y;
export template <class T> class X;  // WARNING - export not implemented