summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/cvt3.C
blob: a020197e24697fbeae1d23d3ac86769b209fdf20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do assemble  }
// GROUPS passed conversions
// cvt file
// Message-Id: <9308122113.AA14119@tnt.acsys.com>
// From: mclaugh@tnt.acsys.com (Mark A. McLaughlin)
// Subject: g++ bug
// Date: Thu, 12 Aug 93 15:13:23 MDT


class C { };

void f(C) { }

void g(const C & c) { f(c); }

void h(const C & c) { f(C(c)); }