Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.jason / overload21.C
blob229be93da7cf34d952ad3f82a1b258ca9813cbd2
1 // { dg-do assemble  }
2 struct X {
3   void f (int = 4, char = 'r'); // { dg-error "previous specification" } 
4   void g (int = 4, char = 'r'); // { dg-error "previous specification" } 
5 };
7 void
8 X::f (int i = 4, char x = 'r') // { dg-error "default argument" }
9 { }
11 void
12 X::g (int i = 9, char x = 's') // { dg-error "default argument" }
13 { }