| 1 |
// { dg-do assemble } |
| 2 |
// { dg-options "-w" } |
| 3 |
// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } } |
| 4 |
// GROUPS passed old-abort |
| 5 |
//#include <GetOpt.h> |
| 6 |
#include <stdio.h> |
| 7 |
|
| 8 |
class GetOpt |
| 9 |
{ |
| 10 |
private: |
| 11 |
static char *nextchar; |
| 12 |
enum OrderingEnum { REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER }; |
| 13 |
OrderingEnum ordering; |
| 14 |
static int first_nonopt; |
| 15 |
static int last_nonopt; |
| 16 |
void exchange (char **argv); |
| 17 |
public: |
| 18 |
char *optarg; |
| 19 |
int optind; |
| 20 |
int opterr; |
| 21 |
|
| 22 |
int nargc; |
| 23 |
char **nargv; |
| 24 |
const char *noptstring; |
| 25 |
|
| 26 |
GetOpt (int argc, char **argv, const char *optstring); |
| 27 |
int operator () (void); |
| 28 |
}; |
| 29 |
//end <GetOpt.h> |
| 30 |
#include <string> |
| 31 |
|
| 32 |
class foo {public: foo () {}}; |
| 33 |
class bar {public: bar (const foo& dflt);}; |
| 34 |
class baz: public bar {public: baz (): bar (foo ()) {}}; |