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
/
noexcept40.C
blob
2effcef52d6fbaf794340b37a59fdde84bf742b3
1
// PR c++/56643
2
// { dg-do compile { target c++11 } }
3
4
template <int N>
5
struct Test {
6
template <int M>
7
friend void test(Test<M>& arg) noexcept(M == 0);
8
};
9
10
template <int N>
11
void test(Test<N>& arg) noexcept(N == 0) {}
12
13
int main() {
14
Test<0> t;
15
test(t);
16
return 0;
17
}