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++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
expr
/
for2.C
blob
52f76964179cd236d06e3d29d8faf6fd0abbfc81
1
// { dg-do compile }
2
// PR c++/17661
3
// We used to try to create a temprary for the condition
4
// expression in the for which was wrong.
5
6
7
struct C
8
{
9
C (const C &x);
10
};
11
C &f();
12
void breakme (C j, bool k)
13
{
14
for (;; k ? j : f()) ;
15
}