8sa1-gcc/gcc/testsuite/g++.old-deja/g++.law/temps1.C
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

19 lines
281 B
C

// Build don't link:
// GROUPS passed temps
// temps file
// Date: Mon, 07 Sep 1992 13:12:28 EDT
// From: richard@ttt.kth.se
struct foo
{
char *s;
foo(char *x) { s=x; }
};
struct cookie
{
foo * v;
cookie ( foo * x) { v=x; }
};
cookie cat(&foo("apabepa"));// ERROR - .*