aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/net16.C
blob: 5da97a8607f441388ead812d9dde880660e9a708 (plain)
1
2
3
4
5
6
7
// On an i386, this core dumps because the reg-stack.c code is wrong, and
// pops an fp register that it thinks is not used, but it is.

extern "C" int printf (const char*, ...);
struct S { ~S () { } };
double f (S) { return 5; } 
int main() { S s; double dist = f (s); printf ("%g\n", dist); return 0; }