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
PR libstdc++/87308 adjust regex used in std::any pretty printer
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
inh-ctor33.C
blob
0e8520745a966b21c8e2364501c25b4fe4fcb2da
1
// { dg-do link { target c++11 } }
2
// { dg-options -fnew-inheriting-ctors }
3
4
struct A
5
{
6
A() { }
7
A(const A&); // should never be called
8
};
9
10
struct B
11
{
12
B(A) { }
13
};
14
15
struct C: B
16
{
17
using B::B;
18
};
19
20
int main()
21
{
22
C c{A()};
23
}