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

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Thu Nov 23 09:38:20 PST 2023


================
@@ -0,0 +1,15 @@
+! UNSUPPORTED: system-windows
+
+! RUN: %clang -o %t.c-object -c %S/Inputs/main_dupes.c
----------------
kiranchandramohan wrote:

You can use %cc for the system-compiler and REQUIRE it to be present for this test. 
Reference: https://github.com/llvm/llvm-project/blob/main/flang/test/Runtime/no-cpp-dep.c

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


More information about the flang-commits mailing list