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
Add execution tests of ARM EXT intrinsics
[official-gcc.git]
/
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);