Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/gen-attrs-77.C

raw
1 // PR c++/106712
2 // { dg-do compile { target c++11 } }
3
4 [[noreturn]] int f1 [[nodiscard]](), f2 ();
5 [[nodiscard]] int f3 (), f4 ();
6 int f5 [[nodiscard]](), f6 ();
7
8 int
9 main ()
10 {
11 f1 (); // { dg-warning "ignoring" }
12 f2 ();
13 f3 (); // { dg-warning "ignoring" }
14 f4 (); // { dg-warning "ignoring" }
15 f5 (); // { dg-warning "ignoring" }
16 f6 ();
17 }