constant-builtins.c revision ae3f4919e4805f59c554d39cb9cd3a601809b2cb
1// RUN: clang -fsyntax-only %s
2
3// Math stuff
4
5float        g0 = __builtin_huge_val();
6double       g1 = __builtin_huge_valf();
7long double  g2 = __builtin_huge_vall();
8float        g3 = __builtin_inf();
9double       g4 = __builtin_inff();
10long double  g5 = __builtin_infl();
11
12// GCC misc stuff
13
14extern int f();
15
16int h0 = __builtin_types_compatible_p(int,float);
17//int h1 = __builtin_choose_expr(1, 10, f());
18//int h2 = __builtin_expect(0, 0);
19