summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/crash39.C
blob: 392c0a0091f24ce4055637f7a0d896f5180d3d3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// { dg-do assemble  }
// { dg-options "-w" }
// GROUPS passed old-abort
//#include <GetOpt.h>
#include <stdio.h>

class GetOpt
{
private:
  static char *nextchar;
   enum OrderingEnum { REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER };
   OrderingEnum ordering;
  static int first_nonopt;
  static int last_nonopt;
  void exchange (char **argv);
public:
  char *optarg;
  int optind;
  int opterr;
  
  int    nargc;
  char **nargv;
  const char  *noptstring;
  
  GetOpt (int argc, char **argv, const char *optstring);
  int operator () (void);
};
//end <GetOpt.h>
#include <string>

class foo {public: foo () {}};
class bar {public: bar (const foo& dflt);};
class baz: public bar {public: baz (): bar (foo ()) {}};