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
11class Class
12{
13        class Err : public std::ostream
14        {
15        public:
16                Err(void) : std::ostream(NULL) { }
17                ~Err(void) { }
18        };
19public:
20        //template<class T> Err& operator << (const T x) { return Err() << x; }
21        Err& operator << (const char *x) { return Err() << x; }// { dg-error "" } .*
22private:
23        char x;
24};
25