2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / sibcall2.C
blob818fa231cd897db58c2b29cbf7c8a0e5f4304249
1 // { dg-do assemble  }
2 // { dg-options "-O2 -foptimize-sibling-calls -fno-exceptions" }
4 struct X
6   const char *c() const { return b; };
7   char *b;
8 };
9 extern "C" int f (const char *);
10 struct A
12    X x;
13    void y();
15 void A::y()
17   const char *const a[] = { x.c() };
18   f (a[0]);