blob: f35198dc6fa731571260642686975e5d35b9079d [file] [log] [blame]
/* PR c/82134 */
/* { dg-do compile } */
/* { dg-additional-options -Wno-c++-compat { target c } } */
struct S {};
__attribute__((warn_unused_result)) struct S foo();
void use_s(struct S);
void
test (void)
{
struct S s = foo(); /* { dg-bogus "ignoring return value of" } */
use_s(foo()); /* { dg-bogus "ignoring return value of" } */
}