summaryrefslogtreecommitdiffstats
path: root/build/clang-plugin/tests/TestNANTestingExprC.c
blob: ab2fead22a42e222dcbfd9db0f74aa3576eaf8ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* expected-no-diagnostics */
void test(int x);
void foo() {
  float f, f2;
  typedef double mydouble;
  mydouble d;
  double d2;
  test(f == f);
  test(d == d);
  test(f != f);
  test(d != d);
  test(f != d);
  test(d == (d - f));
  test(f == f2);
  test(d == d2);
  test(d + 1 == d);
}