From f7765a0579b3278c140b559890b9a3a784444a7e Mon Sep 17 00:00:00 2001 From: Shivarama Rao Date: Sat, 22 Jun 2024 09:10:25 +0530 Subject: [PATCH] [NFC] modifying the testcase to check the behaviour when both Mbackslash and Mnobackslash options are passed. flang should use the last specified option. e.g Mbaskslash should be used when "-Mnobackslash -Mbackslash " arguments are specified. --- test/lex/backslash.f90 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/lex/backslash.f90 b/test/lex/backslash.f90 index bcdb556faf4..cb21928b346 100644 --- a/test/lex/backslash.f90 +++ b/test/lex/backslash.f90 @@ -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