☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-switch2.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-switch2.C
code
plain
raw
1
// PR c++/82728
2
// { dg-do compile { target c++11 } }
3
4
void
5
foo ()
6
{
7
const int i = 1;
8
9
[=]()
10
{
11
switch (0)
12
{
13
case i:
14
break;
15
}
16
static_assert (i, "i");
17
};
18
}