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

Michael Klemm via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 24 05:41:46 PST 2023


================
@@ -0,0 +1,8 @@
+#include <stdio.h>
+
+int main(int argc, char * argv[]) {
+    // Irrelevant what to do in here.
+    // Test is supposed to fail at link time.
+    printf("Hello from C [%s]\n", __FUNCTION__);
----------------
mjklemm wrote:

This is also gone with the move to an LL file.

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


More information about the cfe-commits mailing list