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