// Test that array capture by copy works.// { dg-options -std=c++0x }// { dg-do run }structA{inti;A(inti):i(i){}A(constA&a):i(a.i+1){}};intmain(){Aar[4][3]={{10,20,30},{40,50,60},{70,80,90},{100,110,120}};inti=[ar]{returnar[1][1];}().i;return(i!=52);}