repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
inh-ctor1.C
blob
c656fb9a2339c2ae09d4af08119b5bfb7356e826
1
// { dg-do compile { target c++11 } }
2
3
struct A
4
{
5
int i;
6
constexpr A(int i): i(i) {}
7
};
8
9
struct B: A
10
{
11
using A::A;
12
};
13
14
constexpr B b(42);
15
16
#define SA(X) static_assert((X),#X)
17
SA(b.i == 42);