2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / torture / pr70621.C
blob63eb92805f6e1b776ec87b6e67c4c4c14dc40cda
1 float foo();
3 struct A
5   static float x;  // { dg-message "previous declaration" }
6 };
8 double A::x = foo();  // { dg-error "conflicting declaration" }
10 void bar()
12   A::x = 0;