]>
git.proxmox.com Git - rustc.git/blob - src/llvm/tools/clang/test/CXX/special/class.inhctor/p3.cpp
1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
8 using B1::B1
; // expected-error {{not supported}}
12 D1
fd1() { return 1; }
15 explicit B2(int, int = 0, int = 0);
17 struct D2
: B2
{ // expected-note 2 {{candidate constructor}}
18 using B2::B2
; // expected-error {{not supported}}
20 D2
d2a(1), d2b(1, 1), d2c(1, 1, 1);
22 D2
fd2() { return 1; } // expected-error {{no viable conversion}}
25 B3(void*); // expected-note {{inherited from here}}
27 struct D3
: B3
{ // expected-note 2 {{candidate constructor}}
28 using B3::B3
; // expected-note {{candidate constructor (inherited)}} expected-error {{not supported}}
30 D3
fd3() { return 1; } // expected-error {{no viable conversion}}
32 template<typename T
> struct T1
: B1
{
33 using B1::B1
; // expected-error {{not supported}}
35 template<typename T
> struct T2
: T1
<T
> {
36 using T1
<int>::T1
; // expected-error {{not supported}}
38 template<typename T
> struct T3
: T1
<int> {
39 using T1
<T
>::T1
; // expected-error {{not supported}}
42 friend T1
<int>::T1(int);
43 friend T1
<int>::T1(int, int);
44 friend T2
<int>::T2(int);
45 friend T2
<int>::T2(int, int);
46 friend T3
<int>::T3(int);
47 friend T3
<int>::T3(int, int);