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
PR c++/82069 - ICE with lambda in template
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
20101010-1.c
blob
2067012ebcdabb539ebeddd41ba9c0abf7ec4088
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fno-crossjumping" } */
3
/* { dg-require-effective-target alloca } */
4
5
int
bar1
();
6
int
bar2
();
7
8
int
foo
(
void
)
9
{
10
int
len
;
11
if
(
bar1
(&
len
))
12
{
13
char
devpath
[
len
];
14
if
(
bar2
(
devpath
) ==
len
)
15
return
len
;
16
}
17
return
-
1
;
18
}