repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Implement C++11 inheriting constructors.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
inh-ctor6.C
blob
5ac88d6b7db5c06932835fd74d247b6e1a5e13ff
1
// { dg-options "-std=c++11" }
2
3
extern "C" int printf (const char *, ...);
4
template< class T >
5
struct D : T {
6
using T::T;
7
// declares all constructors from class T
8
~D() { printf ("Destroying wrapper\n"); }
9
};
10
11
struct A {
12
A(int);
13
};
14
15
D<A> d(42);