diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr34985.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr34985.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr34985.c b/gcc/testsuite/gcc.dg/pr34985.c new file mode 100644 index 000000000..56437509d --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr34985.c @@ -0,0 +1,9 @@ +/* PR34985: Warning "defined but not used" despite __attribute__((__used__)) */ +/* { dg-do compile } */ +/* { dg-options "-Wall -Wextra -O2" } */ +static void xxyyzz (void); +static void __attribute__((__used__)) xxyyzz(void) +{ +} + +/* { dg-final { scan-assembler "xxyyzz" } } */ |