[flang-commits] [clang] [flang] [llvm] [flang] Improvise the error message for the option "-fconvert" with allowed values (PR #215966)
Kiran Kumar T P via flang-commits
flang-commits at lists.llvm.org
Thu Aug 13 23:26:12 PDT 2026
================
@@ -20,10 +22,17 @@
! RUN: %flang_fc1 -emit-mlir -fconvert=big-endian %s -o - | FileCheck %s --check-prefix=VALID_FC1
! RUN: %flang_fc1 -emit-mlir -fconvert=swap %s -o - | FileCheck %s --check-prefix=VALID_FC1
! RUN: not %flang_fc1 -fconvert=foobar %s 2>&1 | FileCheck %s --check-prefix=INVALID
+! RUN: not %flang_fc1 -fconvert=big_endian %s 2>&1 | FileCheck %s --check-prefix=INVALID-BIG-ENDIAN
+! RUN: not %flang_fc1 -fconver=Foobar %s 2>&1 | FileCheck %s --check-prefix=UNKNOWN-OPTION
----------------
kiranktp wrote:
I added this test to make sure the compiler is suggesting the closest option available.
this test fails when the suggestion changes.
If its redundant, I can remove this test.
https://github.com/llvm/llvm-project/pull/215966
More information about the flang-commits
mailing list