blob: 4d4faa9e08d9cb8893dcf9b1f81194e5ddfcbb09 (
plain)
1
2
3
4
5
6
|
// PR c++/104996
// { dg-do compile { target c++11 } }
template<unsigned size> char f(int (&&)[size]);
template<unsigned size> int f(int const (&)[size]);
static_assert(sizeof(f({1, 2, 3})) == 1, "");
|