summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-for.C
blob: f161da85774e6299d22f901cc2a818814ecd0236 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/50114
// { dg-options "-std=c++0x -w" }

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