diff options
Diffstat (limited to 'clang/test/Sema/rdr6094103-unordered-compare-promote.c')
-rw-r--r-- | clang/test/Sema/rdr6094103-unordered-compare-promote.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Sema/rdr6094103-unordered-compare-promote.c b/clang/test/Sema/rdr6094103-unordered-compare-promote.c new file mode 100644 index 0000000..7bb363e --- /dev/null +++ b/clang/test/Sema/rdr6094103-unordered-compare-promote.c @@ -0,0 +1,6 @@ +// RUN: %clang_cc1 -ast-dump %s 2>&1 | grep ImplicitCastExpr | count 4 + +int foo (double x, long double y) { + // There needs to be an implicit cast on x here. + return __builtin_isgreater(x, y); +} |