]> granicus.if.org Git - clang/commitdiff
Fix some tests I broke in r354190
authorErik Pilkington <erik.pilkington@gmail.com>
Sat, 16 Feb 2019 01:51:19 +0000 (01:51 +0000)
committerErik Pilkington <erik.pilkington@gmail.com>
Sat, 16 Feb 2019 01:51:19 +0000 (01:51 +0000)
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

test/Misc/warn-in-system-macro-def.c
test/Sema/warn-double-promotion.c

index b295130702f5d8b1af5113dca85c7c48e18a4e3b..bdf7d39325e94eae9d6e90971b788793e1e0c647 100644 (file)
@@ -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'
index 0cf33e84b427bf1791a710ea70c34e7f7521b71b..5742a4fb3cbd4bfd4a6543b889cc920ce52fe9de 100644 (file)
@@ -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;