Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
();
}