Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.benjamin / 15799.C
blob35d882b21b355381b6a3a6a1b916f0cc4c1ddd94
1 // { dg-do assemble  }
2 // 981203 bkoz
3 // g++/15799  test1
5 /* 
6 15799.cpp: In function `void foo()':
7 15799.cpp:21: call of overloaded `sanjose({anonymous enum})' is ambiguous
8 15799.cpp:13: candidates are: sanjose::sanjose(const sanjose &) <near match>
9 15799.cpp:14:                 sanjose::sanjose(unsigned int)
12 typedef char int_8;
13 typedef unsigned long uint_32;
15 class sanjose {
16 public:
17    sanjose();
18    sanjose(const sanjose&);  // { dg-message "note" }
19    sanjose(int_8 value);  // { dg-message "note" }
20    sanjose(uint_32 value);  // { dg-message "note" }
23 enum { first, last};
25 void foo(void) {
26   sanjose obj(first); // { dg-error "ambiguous" }