Debian Codegraph @

gcc/testsuite/g++.dg/warn/Wunused-value-1.C

raw
1 // PR c++/107797
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Wunused" }
4
5 void
6 g ()
7 {
8 (long) new int{};
9 long(new int{});
10 (long) new int();
11 long(new int());
12 }