| 1 |
// Tests from P2223R2 |
| 2 |
// { dg-additional-options -w } |
| 3 |
// { dg-do compile { target c++11 } } |
| 4 |
|
| 5 |
constexpr auto str = "\ |
| 6 |
"; |
| 7 |
|
| 8 |
static_assert(__builtin_strlen(str) == 0, ""); |
| 9 |
|
| 10 |
constexpr int i = 1 |
| 11 |
// \ |
| 12 |
+ 42 |
| 13 |
; |
| 14 |
|
| 15 |
static_assert(i == 1, ""); |