aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-for.C
blob: 0123034e09cecc843f1498d0504242762a21c090 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/50114
// { dg-do compile { target c++11 } }
// { dg-options "-w" }

int open()
{
  int *x2feed_i = 0;
  auto insert_feed = [&](unsigned char venue, int* newfeed)
  {
     for(int x2feed_i = 1; 0; ) ;
     x2feed_i = newfeed;
  };
}