1 // { dg-do assemble  }
2 // GROUPS passed constructors
3 // ctor file
4 // Message-Id: <9302052351.AA10789@harvey>
5 // From: greg@qualcomm.com (Greg Noel)
6 // Subject: bug019.cc
7 // Date: Fri, 5 Feb 93 15:51:42 -0800
8 
9 #include <iostream>
10 
11 class Klasse
12 {
13         class Err : public std::ostream
14         {
15         public:
Err(void)16                 Err(void) : std::ostream(NULL) { }
~Err(void)17                 ~Err(void) { }
18         };
19 public:
20         //template<class T> Err& operator << (const T x) { return Err() << x; }
21         Err& operator << (const char *x) { return Err() << x; }// { dg-error "" } .*
22 private:
23         char x;
24 };
25