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
i386: Adjust rtx cost for imulq and imulw [PR115749]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-this11.C
blob
2618295662e6ab1e271a1f7fccc50218e605f41d
1
// PR c++/51494, c++/56222
2
// Uses of static members and creating pointers to members aren't odr-uses
3
// of 'this'.
4
// { dg-do compile { target c++11 } }
5
6
struct A
7
{
8
static void f() {}
9
static int i;
10
int j;
11
void f(int);
12
13
void foo()
14
{
15
[] () {
16
++i;
17
f();
18
&A::j;
19
(void(*)())&A::f;
20
};
21
}
22
};