Skip to content

Commit f495716

Browse files
[NFC] modifying the testcase to check the behaviour when both Mbackslash and Mnobackslash options are passed. (#1448)
flang should use the last specified option. e.g Mbaskslash should be used when "-Mnobackslash -Mbackslash <filename>" arguments are specified.
1 parent 291f7cc commit f495716

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/lex/backslash.f90

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
! RUN: %flang -c -fno-backslash %s
99
! RUN: not %flang -c -Mnobackslash %s 2>&1 | FileCheck %s
1010
! RUN: not %flang -c -fbackslash %s 2>&1 | FileCheck %s
11+
! RUN: %flang -c -Mnobackslash -Mbackslash %s
12+
! RUN: %flang -c -fbackslash -fno-backslash %s
13+
! RUN: not %flang -c -Mbackslash -Mnobackslash %s 2>&1 | FileCheck %s
14+
! RUN: not %flang -c -fno-backslash -fbackslash %s 2>&1 | FileCheck %s
15+
! RUN: not %flang -c -Mnobackslash -Mbackslash -Mnobackslash %s 2>&1 | FileCheck %s
16+
! RUN: not %flang -c -fbackslash -fno-backslash -fbackslash %s 2>&1 | FileCheck %s
1117

1218
write (*,*) "\" ! CHECK: Unmatched quote
1319
end

0 commit comments

Comments
 (0)