* cfgloopmanip.c (duplicate_loop_to_header_edge): Cleanup profile
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / cvt16.C
blob0c821b589662453da1d454c2f088ce25b4c1d0f6
1 // { dg-do assemble  }
2 // GROUPS passed conversions
3 // cvt file
4 // Message-Id: <9304121647.AA25819@tnt>
5 // From: mclaugh@tnt.acsys.com (Mark A. McLaughlin)
6 // Subject: g++ bug
7 // Date: Mon, 12 Apr 93 10:47:01 MDT
9 #include <iostream>
11 class B {
14 class A : public B {
15    short s;
16 public:
17    A(short _s = 0) { s = _s; }
18    operator const short &() const { return s; }
21    int
22 main() {
23    A a(37);
24    //cout << a << endl;
25    std::cout << (short)a << std::endl;
27    return 0;
28 }  // main