☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
cond2.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/cond2.C
code
plain
raw
1
// PR c++/86205
2
// { dg-do compile { target c++11 } }
3
4
bool b;
5
6
template < class T > int f ()
7
{
8
return 0;
9
}
10
11
template < class T > auto g () -> decltype (b ? f < int > : throw 0)
12
{
13
return b ? f<int> : throw 0;
14
}