[flang-commits] [clang] [flang] [flang][Driver] Let the linker fail on multiple definitions of main() (PR #73124)

Andrzej Warzyński via flang-commits flang-commits at lists.llvm.org
Sun Nov 26 07:54:30 PST 2023


================
@@ -0,0 +1,15 @@
+! UNSUPPORTED: system-windows
+
+! RUN: %flang -x ir -o %t.c-object -c %S/Inputs/main_dupes.ll
+! RUN: %flang -o %t -c %s
+! RUN: not %flang -o %t.exe %t %t.c-object 2>&1
----------------
banach-space wrote:

That was just a nit - I am happy if you keep things as is 👍🏻 !

https://github.com/llvm/llvm-project/pull/73124


More information about the flang-commits mailing list