[flang-commits] [flang] [Flang][OpenMp]Add testcase for threadprivate with blank common block (PR #74969)

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Sat Dec 9 23:44:27 PST 2023


================
@@ -0,0 +1,9 @@
+! RUN: not %flang_fc1 -fsyntax-only %s -fopenmp 2>&1 | FileCheck %s
+! From Standard: A blank common block cannot appear in a threadprivate directive.
+
+program main
+    integer :: a
+    common//a
+    !CHECK: error: expected one of '$@ABCDEFGHIJKLMNOPQRSTUVWXYZ_'
+    !$omp threadprivate(//)
+ end
----------------
kiranchandramohan wrote:

Nit: Add new line at the end.

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


More information about the flang-commits mailing list