1 // RUN: %clang_cc1 -fsyntax-only %s -verify -pedantic 2 3 // Math stuff 4 5 float g0 = __builtin_huge_val(); 6 double g1 = __builtin_huge_valf(); 7 long double g2 = __builtin_huge_vall(); 8 float g3 = __builtin_inf(); 9 double g4 = __builtin_inff(); 10 long double g5 = __builtin_infl(); 11 12 // GCC misc stuff 13 14 extern int f(); 15 16 int h0 = __builtin_types_compatible_p(int,float); 17 //int h1 = __builtin_choose_expr(1, 10, f()); 18 //int h2 = __builtin_expect(0, 0); 19 20 short somefunc(); 21 22 short t = __builtin_constant_p(5353) ? 42 : somefunc(); 23 24 25