| 1 |
// PR c++/118390 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
// { dg-options "" } |
| 4 |
|
| 5 |
template<typename T, int N> |
| 6 |
constexpr int |
| 7 |
foo (const T (&x)[N]) |
| 8 |
{ |
| 9 |
return N; |
| 10 |
} |
| 11 |
|
| 12 |
static_assert (foo ({ |
| 13 |
#embed __FILE__ limit (64) |
| 14 |
}) == 64, ""); |