[PATCH] D96069: [flang][msvc] Fix compilation of external-hello-world with MSVC.
مهدي شينون (Mehdi Chinoune) via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 4 11:32:40 PST 2021
ChinouneMehdi created this revision.
ChinouneMehdi added reviewers: Flang, Meinersbur.
ChinouneMehdi added a project: Flang.
Herald added a subscriber: jdoerfert.
ChinouneMehdi requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
MSVC doesn't accept division by zero.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D96069
Files:
flang/unittests/Runtime/external-hello.cpp
Index: flang/unittests/Runtime/external-hello.cpp
===================================================================
--- flang/unittests/Runtime/external-hello.cpp
+++ flang/unittests/Runtime/external-hello.cpp
@@ -13,9 +13,11 @@
IONAME(OutputReal64)(io, 0.0);
IONAME(OutputReal64)(io, 2.0 / 3.0);
IONAME(OutputReal64)(io, 1.0e99);
+#ifndef _MSC_VER
IONAME(OutputReal64)(io, 1.0 / 0.0);
IONAME(OutputReal64)(io, -1.0 / 0.0);
IONAME(OutputReal64)(io, 0.0 / 0.0);
+#endif
IONAME(OutputComplex64)(io, 123.0, -234.0);
IONAME(OutputLogical)(io, false);
IONAME(OutputLogical)(io, true);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96069.321529.patch
Type: text/x-patch
Size: 609 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210204/5e2b1db1/attachment.bin>
More information about the llvm-commits
mailing list