summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/net16.C
blob: 0f15f713383678634eed7d0bca565652db0f2e8d (plain)
1
2
3
4
5
6
7
8
// { dg-do run  }
// 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; }