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

int i;

void
f1 ()
{
  const int * __attribute__((unused)) a = &i;
  const int *b __attribute__((unused)) = &i;
}