1 /* Origin: PR c++/44108 */ 2 /* { dg-options "-Wunused" } */ 3 /* { dg-do compile } */ 4 5 int foo()6foo () 7 { 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; 12 13 char n1[M]; 14 char n2[M_CONST]; 15 char n3[M_STATIC]; 16 char n4[M_STATIC_CONST]; 17 18 return sizeof (n1) + sizeof (n2) + sizeof (n3) + sizeof (n4); 19 } 20