repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[AArch64] Fix SVE testsuite failures for ILP32 (PR 83846)
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
vla5.C
blob
6bfbece9174ca19075185c3792d41a753fc0fc63
1
// PR c++/55149
2
// { dg-do compile { target c++11 } }
3
// { dg-options "-Wno-vla" }
4
5
void test(int n) {
6
int r[n];
7
[&r]() { return r + 0; };
8
[r]() { return r + 0; }; // { dg-error "captured by copy" }
9
}