summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr34985.c
blob: 56437509d9fab8a749a1c88839514dc3f7efe02d (plain)
1
2
3
4
5
6
7
8
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" } } */