diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/unused-4.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/unused-4.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/unused-4.c b/gcc/testsuite/gcc.dg/unused-4.c new file mode 100644 index 000000000..99e845f45 --- /dev/null +++ b/gcc/testsuite/gcc.dg/unused-4.c @@ -0,0 +1,6 @@ +/* { dg-do compile } */ +/* { dg-options "-Wunused -O3" } */ + +static const int i = 0; +static void f() { } /* { dg-warning "defined but not used" } */ +static inline void g() { } |