summaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/Wunused-function-1.c
blob: 9f856952b2e216a1f8cbc1dd6ca7b2fa4853778c (plain)
1
2
3
4
5
6
7
8
9
10
/* PR c++/64079 */
/* { dg-do compile } */
/* { dg-options "-Wunused-function" } */

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-function"

static void bar() {}

#pragma GCC diagnostic pop