1 // RUN: clang-cc -fsyntax-only %s
7 void test_copycon(X x
, X
const xc
, X
volatile xv
) {
10 float& f1
= copycon(xv
);
18 class B
: public A
{ };
24 void test_copycon2(A a
, const A ac
, B b
, B
const bc
, B
volatile bv
) {
25 int& i1
= copycon2(b
);
26 float& f1
= copycon2(bc
);
27 float& f2
= copycon2(bv
);
28 short& s1
= copycon2(a
);
29 float& f3
= copycon2(ac
);
35 void test_copycon3(B b
, const B bc
) {
36 int& i1
= copycon3(b
);
37 float& f1
= copycon3(bc
);
41 class C
: public B
{ };
46 void test_copycon4(C c
) {