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