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
Merged r158229 through r158464 into branch.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-conv4.C
blob
6584d28b9a8f6d55c925ca4169b93f1d9534a864
1
// PR c++/43641
2
// { dg-options "-std=c++0x" }
3
4
struct B
5
{
6
int i;
7
};
8
9
void func()
10
{
11
[](const B& b) -> const int& { return b.i; };
12
[](const B& b) { return b; };
13
}