1 extern int global; // { dg-warning "Decl Global global" }
2 int global_array[] = { 1, 2, 3 }; // { dg-warning "Decl Global global_array" }
4 int takes_args(int arg1, int arg2)
6 int local = arg1 + arg2 + global; // { dg-warning "Decl Local local" }
10 int global = 12; // { dg-warning "Decl Global global" }
13 int field; // { dg-warning "Decl Field field" }
17 int class_field1; // { dg-warning "Decl Field class_field1" }
18 int class_field2; // { dg-warning "Decl Field class_field2" }
20 test_class() // { dg-warning "Decl Function __ct" }
21 : class_field1(0), class_field2(0)
24 void swap_fields(int bias) // { dg-warning "Decl Function swap_fields" }
26 int temp = class_field1 + bias; // { dg-warning "Decl Local temp" }
27 class_field1 = class_field2 - bias;