[flang-commits] [flang] flang: allow EXIT to accept integer arguments of any kind (PR #174610)
via flang-commits
flang-commits at lists.llvm.org
Mon Jan 19 08:58:23 PST 2026
================
@@ -0,0 +1,16 @@
+! Test that EXIT accepts INTEGER of any kind
+! RUN: %flang_fc1 %s
+
+program test_exit_any_integer
+ implicit none
+ integer(1) :: s1 = 1
+ integer(2) :: s2 = 2
+ integer(4) :: s4 = 4
+ integer(8) :: s8 = 8
+
+ call exit(s1)
+ call exit(s2)
+ call exit(s4)
+ call exit(s8)
----------------
blazie2004 wrote:
I manually compiled and ran a test exercising EXIT with multiple INTEGER kinds to sanity-check runtime behavior; all integer kinds worked as expected.
https://github.com/llvm/llvm-project/pull/174610
More information about the flang-commits
mailing list