☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist129.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/initlist129.C
code
plain
raw
1
// PR c++/104996
2
// { dg-do compile { target c++11 } }
3
4
template<unsigned size> char f(int (&&)[size]);
5
template<unsigned size> int f(int const (&)[size]);
6
static_assert(sizeof(f({1, 2, 3})) == 1, "");