2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / groff1.C
blob0f26863c7452db01c86a1415e50d19e867917965
1 // { dg-do run  }
2 // GROUPS passed groff
3 /* This should compile properly with the new overloading scheme.  */
5 extern "C" int printf (const char *, ...);
6 extern "C" void exit (int);
8 int win = 0;
10 class symbol
12 public:
13   symbol(const char *p, int how = 0) {}
14   symbol() {}
17 class dictionary
19 public:
20   void lookup(symbol s, void *v=0) { win = 1; }
21   void lookup(const char *) {}
24 int main()
26   char buf[2048];
27   dictionary exceptions;
28   unsigned char *tem = new unsigned char[19 + 1];
30   exceptions.lookup (symbol (buf), tem);
32   printf (win ? "PASS\n" : "FAIL\n");
33   exit (! win);