comparison gcc/testsuite/g++.dg/warn/Wunused-function4.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 // PR c++/80598
2 // { dg-do compile }
3 // { dg-options "-Wunused-function" }
4
5 static void
6 foo () // { dg-bogus "defined but not used" }
7 {
8 }
9
10 static void
11 bar () // { dg-warning "defined but not used" }
12 {
13 }
14
15 template <class T>
16 int
17 baz (T x)
18 {
19 foo ();
20 return 0;
21 }