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
m68k: replace reload_in_progress by reload_in_progress || lra_in_progress
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
lambda-vla1.C
blob
c9025c79aa7784c821b415906b209274ae080cba
1
// PR c++/90732
2
// { dg-do compile { target c++14 } }
3
// { dg-additional-options "-Wno-vla" }
4
5
/*const*/ int SIZE = 100;
6
7
template<typename T>
8
int foo(T t) {
9
char buf[SIZE] = { 24 };
10
return [&buf](auto x){ return buf[x]; }(t);
11
}
12
13
int main() {
14
if (foo(0) != 24)
15
__builtin_abort();
16
}