From: Erik Pilkington Date: Sat, 16 Feb 2019 01:51:19 +0000 (+0000) Subject: Fix some tests I broke in r354190 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c9670064798750eaa0ae8179dcd7e45f57cb5d3;p=clang Fix some tests I broke in r354190 This was breaking on MSVC, since long double and double have the same semantics there. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@354192 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Misc/warn-in-system-macro-def.c b/test/Misc/warn-in-system-macro-def.c index b295130702..bdf7d39325 100644 --- a/test/Misc/warn-in-system-macro-def.c +++ b/test/Misc/warn-in-system-macro-def.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -isystem %S -Wdouble-promotion -fsyntax-only %s 2>&1 | FileCheck -allow-empty %s +// RUN: %clang_cc1 -triple x86_64-apple-darwin -isystem %S -Wdouble-promotion -fsyntax-only %s 2>&1 | FileCheck -allow-empty %s // CHECK: warning: // CHECK: expanded from macro 'ISNAN' // CHECK: expanded from macro 'isnan' diff --git a/test/Sema/warn-double-promotion.c b/test/Sema/warn-double-promotion.c index 0cf33e84b4..5742a4fb3c 100644 --- a/test/Sema/warn-double-promotion.c +++ b/test/Sema/warn-double-promotion.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -verify -fsyntax-only %s -Wdouble-promotion +// RUN: %clang_cc1 -triple x86_64-apple-darwin -verify -fsyntax-only %s -Wdouble-promotion float ReturnFloatFromDouble(double d) { return d;