Sign in
gnu
/
gcc
/
5e9c4ed903c39f82f28362d9411d4dbc491264ec
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wunused-var-11.C
blob: c7c1bf35ff7b3a613ff8372666426cc4ce7d4a94 [
file
] [
log
] [
blame
]
// PR c++/44412
// { dg-do compile }
// { dg-options "-Wunused" }
struct
S
{
int
foo
();
static
int
bar
();
};
int
S
::
foo
()
{
return
5
;
}
int
S
::
bar
()
{
return
6
;
}
int
f1
()
{
S s
;
return
s
.
foo
();
}
int
f2
()
{
S s
;
return
s
.
bar
();
}