summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/global1.C
blob: 21f1cac06638b6e80df95d9f13c594942a27e7a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/18416

class errarg { 
  enum { EMPTY } type; 
public: 
  errarg(); 
}; 
extern errarg empty_errarg; 
extern void errprint(const char *, 
		     const errarg &arg1 = empty_errarg, 
		     const errarg &arg2 = empty_errarg, 
		     const errarg &arg3 = empty_errarg); 
errarg::errarg() : type(EMPTY) 
{ 
} 
errarg empty_errarg;