summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/misc17.C
blob: 4052664159eb8f7db513e3996aacfb5437f19cd7 (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
34
35
36
// { dg-do assemble  }
// GROUPS passed miscellaneous-bugs
typedef int va_list;
class ostream;
class String {
public:
operator const char *() const;
};
class FwtErrorManager {
public:
    FwtErrorManager(ostream& err, const char *program);
public:
    void form(const char *format, ...);
protected:
    const String _program;	 
private:
    FwtErrorManager(const FwtErrorManager&);
    void operator=(const FwtErrorManager&);
};
class FwtProgram: public FwtErrorManager {
public:
    FwtProgram();	 
};
class FwtArgOptions { };
class FwtStdProgram: public FwtProgram, public FwtArgOptions {
public:
    FwtStdProgram();	 
    void usage_if_not_complete();
};
void
FwtStdProgram::usage_if_not_complete()
{
	FwtStdProgram& thisp = *this;
	thisp.form("%s: error, there were unrecognized options",
		   (char *) FwtErrorManager::_program);// { dg-error "" } .*
}