Debian Codegraph @

gcc/testsuite/g++.dg/DRs/dr188.C

raw
1 // DR 188
2 // { dg-do compile { target c++11 } }
3 // From [diff.expr]p5.
4
5 char arr[100];
6 // Yields 100 in C++ and sizeof(char*) in C.
7 static_assert (sizeof (0, arr) == 100, "");