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
Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-this12.C
blob
41e4edd8a0fbcee598433392a81b97406aa1c61a
1
// Uses of 'this' in unevaluated context are not odr-uses.
2
// { dg-do compile { target c++11 } }
3
4
struct A
5
{
6
int f() { return 0; }
7
int i;
8
9
void foo()
10
{
11
[] () { sizeof(i); sizeof(f()); };
12
}
13
};