Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / c-c++-common / Wunused-var-8.c
blob0923b3556625584ecf79edecaf76bccefc7944fc
1 /* Origin: PR c++/44108 */
2 /* { dg-options "-Wunused" } */
3 /* { dg-do compile } */
5 int
6 foo ()
8 unsigned int M = 2;
9 const unsigned int M_CONST = 2;
10 static unsigned int M_STATIC = 2;
11 static const unsigned int M_STATIC_CONST = 2;
13 char n1[M];
14 char n2[M_CONST];
15 char n3[M_STATIC];
16 char n4[M_STATIC_CONST];
18 return sizeof (n1) + sizeof (n2) + sizeof (n3) + sizeof (n4);