[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
Fri Nov 24 09:02:49 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:

[nit] You could add a "valid"/"working" compilation line to contrast it with the broken one. 

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


More information about the flang-commits mailing list