[flang-commits] [flang] [flang][Driver] Improve error message for assembly file input (PR #174069)
Tarun Prabhu via flang-commits
flang-commits at lists.llvm.org
Wed Dec 31 09:25:30 PST 2025
================
@@ -0,0 +1,14 @@
+! Test that assembly input produces a helpful error message when not supported
+!
+! RUN: not %flang %s 2>&1 | FileCheck %s
+! RUN: not %flang -c %s 2>&1 | FileCheck %s
+! RUN: not %flang %s -o output 2>&1 | FileCheck %s
+
+! CHECK: error: Currently, the driver does not accept assembly code. Use clang instead.
+! CHECK-SAME: Note that '-lflang_rt.runtime -lm' is required for linking.
+
+! Some dummy assembly content
----------------
tarunprabhu wrote:
This comment doesn't really explain anything
https://github.com/llvm/llvm-project/pull/174069
More information about the flang-commits
mailing list