Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / other / warning1.C
bloba5cce6ce04110f06f722bb01e44f46ead655605f
1 // { dg-do compile }
3 // PR c++/7804
4 // Floating point formatting in error and warning messages
6 extern "C" int printf(const char *, ...);
8 struct S
10   static const float inf = 1.0f / 0.0f; // { dg-warning "1.0|float|initialization" }
11   static const float nan = 0.0f / 0.0f; // { dg-warning "0.0|float|initialization" }
14 int main()
16   printf("%f\n%f\n", S::inf, S::nan);
17   return 0;