1 // Special g++ Options: -w
2 // GROUPS passed ARM-compliance
3 // arm file (also in cvt file)
4 // Message-Id: <9303061246.AA09402@gjetost.cs.wisc.edu>
5 // From: solomon@cs.wisc.edu (Marvin Solomon)
6 // Subject: Incorrect resolution of conversion path
7 // Date: Sat, 6 Mar 93 06:46:27 -0600
10 extern "C" int printf (const char *, ...);
15 Base(int ii) : i(ii) {}
18 class Derived : public Base {
20 Derived(int ii) : Base(ii) {}
24 Derived::operator Base&() {
25 Base *b = new Base(100*i);
31 { printf ("PASS\n"); return 0; }
33 { printf ("FAIL\n"); return 1; }