PR c++/56973, DR 696 - capture constant variables only as needed.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / constexpr-void1.C
blob10ef5bc8a6e8226e66fc32f481622336ca7c47c9
1 // { dg-do compile { target c++14 } }
3 struct S
5   int i = 20;
7   constexpr void
8   foo (void)
9   {
10     if (i > 20)
11       __builtin_abort ();
12   }