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
/
noexcept20.C
blob
ec4f3a153354eeec975de4c833e6c32ffc2d78d3
1
// PR c++/56071
2
// { dg-do compile { target c++11 } }
3
4
class B
5
{
6
template <typename T> friend struct A;
7
B() {}
8
};
9
10
template <typename T>
11
struct A
12
{
13
A() noexcept(noexcept(B())) { }
14
};
15
16
struct C
17
{
18
C()
19
{
20
static_assert( !noexcept(A<int>()), "" );
21
}
22
};