[flang-commits] [flang] [Flang] Change sizeof argument name to "x" (PR #130189)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Thu Mar 6 14:27:57 PST 2025


================
@@ -0,0 +1,10 @@
+! RUN: %python %S/test_errors.py %s %flang_fc1
+  character(len=20) :: a, b
+  if (sizeof(a) == sizeof(x=b)) then
+    print *, "pass"
+  else
+    print *, "fail"
+  end if
+  ERROR! unknown keyword argument to intrinsic 'sizeof'
----------------
klausler wrote:

This file needs to be in flang/test/Semantics in order to use test_errors.py, and it needs to have a syntax error cleaned up.

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


More information about the flang-commits mailing list