From 8f83e2f4d60815f23ec5bc8ce9043b660dc18c23 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/lex/backslash.f90 b/test/lex/backslash.f90 index bcdb556faf4..d2c28d5e86f 100644 --- a/test/lex/backslash.f90 +++ b/test/lex/backslash.f90 @@ -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