Skip to content

Commit

Permalink
[NFC] modifying the testcase to check the behaviour when both Mbacksl…
Browse files Browse the repository at this point in the history
…ash and Mnobackslash options are passed.

flang should use the last specified option. e.g Mbaskslash should be used when
"-Mnobackslash -Mbackslash <filename>" arguments are specified.
  • Loading branch information
shivaramaarao committed Aug 13, 2024
1 parent 660b3a0 commit 4e6fd09
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/lex/backslash.f90
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
! RUN: %flang -c -fno-backslash %s
! RUN: not %flang -c -Mnobackslash %s 2>&1 | FileCheck %s
! RUN: not %flang -c -fbackslash %s 2>&1 | FileCheck %s
! RUN: %flang -c -Mnobackslash -Mbackslash %s
! RUN: %flang -c -fbackslash -fno-backslash %s
! RUN: not %flang -c -Mnobackslash -Mbackslash -Mnobackslash %s 2>&1 | FileCheck %s
! RUN: not %flang -c -fno-backslash -fbackslash %s 2>&1 | FileCheck %s

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

0 comments on commit 4e6fd09

Please sign in to comment.