libgo: update to Go1.10beta1
[official-gcc.git] / gcc / testsuite / c-c++-common / Wtautological-compare-3.c
blob64807b01d594f1fc2dea29ebb8d420d48e6584fd
1 /* { dg-do compile } */
2 /* { dg-options "-Wtautological-compare" } */
3 /* Test we don't warn for floats. */
5 struct S { double d; float f; };
7 void
8 fn1 (int i, float f, double d, struct S *s, float *fp)
10 if (f == f);
11 if (f != f);
12 if (d == d);
13 if (d != d);
14 if (fp[i] == fp[i]);
15 if (fp[i] != fp[i]);
16 if (s->f == s->f);
17 if (s->f != s->f);
18 if (s->d == s->d);
19 if (s->d != s->d);