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
Merged revisions 208012,208018-208019,208021,208023-208030,208033,208037,208040-20804...
[official-gcc.git]
/
main
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
inh-ctor7.C
blob
280ccfebed7c09cae97909c3143095bdeb2f90a5
1
// { dg-do compile { target c++11 } }
2
3
struct A
4
{
5
int i;
6
template <class T>
7
constexpr A(T t): i(t) {}
8
};
9
10
struct B: A
11
{
12
using A::A;
13
};
14
15
constexpr B b(42);
16
17
#define SA(X) static_assert((X),#X)
18
SA(b.i == 42);