summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Pilkington <erik.pilkington@gmail.com>2019-02-16 01:51:19 +0000
committerErik Pilkington <erik.pilkington@gmail.com>2019-02-16 01:51:19 +0000
commitf6e77311502c091f5fad236be5b830801ec13332 (patch)
tree66a1c47b409867fe0ac97e7d38e8678675f50e26
parentb6ca1e72594a3b79fbe37cd2e70f531c448f3e76 (diff)
downloadbcm5719-llvm-f6e77311502c091f5fad236be5b830801ec13332.tar.gz
bcm5719-llvm-f6e77311502c091f5fad236be5b830801ec13332.zip
Fix some tests I broke in r354190
This was breaking on MSVC, since long double and double have the same semantics there. llvm-svn: 354192
-rw-r--r--clang/test/Misc/warn-in-system-macro-def.c2
-rw-r--r--clang/test/Sema/warn-double-promotion.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Misc/warn-in-system-macro-def.c b/clang/test/Misc/warn-in-system-macro-def.c
index b295130702f..bdf7d39325e 100644
--- a/clang/test/Misc/warn-in-system-macro-def.c
+++ b/clang/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/clang/test/Sema/warn-double-promotion.c b/clang/test/Sema/warn-double-promotion.c
index 0cf33e84b42..5742a4fb3cb 100644
--- a/clang/test/Sema/warn-double-promotion.c
+++ b/clang/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;
OpenPOWER on IntegriCloud