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
* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
inh-ctor2.C
blob
15e5657a4ff2a138a566fb9bd54ed6eb1ab8f66d
1
// { dg-do compile { target c++11 } }
2
3
struct A
4
{
5
int i;
6
constexpr A(int, int i = num): i(i) {}
7
private:
8
static const int num = 42;
9
};
10
11
struct B: A
12
{
13
using A::A;
14
};
15
16
constexpr B b(24);
17
18
#define SA(X) static_assert((X),#X)
19
SA(b.i == 42);