| 1 |
// { dg-do compile } |
| 2 |
// Origin: Giovanni Bajo <giovannibajo at gcc dot gnu dot org> |
| 3 |
// DR188: Comma operator and rvalue conversion |
| 4 |
|
| 5 |
template <bool> struct StaticAssert; |
| 6 |
template <> struct StaticAssert<true> {}; |
| 7 |
|
| 8 |
char arr[100]; |
| 9 |
StaticAssert<(sizeof(0,arr) == 100)> check; |