aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp23/whitespace-splice1.C
blob: f115ce0de13a8c487b25632ac7c4651bc6c27e8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Tests from P2223R2
// { dg-additional-options -w }
// { dg-do compile { target c++11 } }

constexpr auto str = "\ 
";

static_assert(__builtin_strlen(str) == 0, "");

constexpr int i = 1
  // \ 
  + 42
  ;

static_assert(i == 1, "");