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. (#1448)

flang should use the last specified option. e.g Mbaskslash should be used when
"-Mnobackslash -Mbackslash <filename>" arguments are specified.
  • Loading branch information
shivaramaarao authored Oct 3, 2024
1 parent 291f7cc commit f495716
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/lex/backslash.f90
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
! 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 -Mbackslash -Mnobackslash %s 2>&1 | FileCheck %s
! RUN: not %flang -c -fno-backslash -fbackslash %s 2>&1 | FileCheck %s
! RUN: not %flang -c -Mnobackslash -Mbackslash -Mnobackslash %s 2>&1 | FileCheck %s
! RUN: not %flang -c -fbackslash -fno-backslash -fbackslash %s 2>&1 | FileCheck %s

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

0 comments on commit f495716

Please sign in to comment.