diff --git a/flang/test/Semantics/test_symbols.py b/flang/test/Semantics/test_symbols.py index 24dc5004a4229..aca55acc8d402 100755 --- a/flang/test/Semantics/test_symbols.py +++ b/flang/test/Semantics/test_symbols.py @@ -29,7 +29,7 @@ # Strips out blank lines and all comments except for "!DEF:", "!REF:", "!$acc" and "!$omp" with open(src, "r") as text_in: for line in text_in: - text = re.sub(r"!(?![DR]EF:|\$omp|\$acc).*", "", line) + text = re.sub(r"!(?![DR]EF:|\$omp|\$acc).*", "", line, re.I) text = re.sub(r"^\s*$", "", text) diff1 += text