xref: /minix3/external/bsd/llvm/dist/clang/test/Sema/rdr6094103-unordered-compare-promote.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -ast-dump %s 2>&1 | grep ImplicitCastExpr | count 4
2*f4a2713aSLionel Sambuc 
foo(double x,long double y)3*f4a2713aSLionel Sambuc int foo (double x, long double y) {
4*f4a2713aSLionel Sambuc   // There needs to be an implicit cast on x here.
5*f4a2713aSLionel Sambuc   return __builtin_isgreater(x, y);
6*f4a2713aSLionel Sambuc }
7