From 464cb6c8c8be7829a70e00280af3907425722e62 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Sat, 27 Jul 2019 16:57:19 +0000 Subject: [PATCH] Attempt to make test in r367165 more robust. Some people were seeing this failure: ``` : 'RUN: at line 83'; clang -mrelax-all -fno-integrated-as /b/s/w/ir/k/llvm-project/clang/test/Driver/as-options.s -S 2>&1 \ | /FileCheck --check-prefix=WARN --allow-empty clang/test/Driver/as-options.s -- Exit Code: 1 Command Output (stderr): -- clang/test/Driver/as-options.s:66:16: error: NOWARN-NOT: excluded string found in input // NOWARN-NOT: unused ^ :1:95: note: found here clang-10: warning: clang/test/Driver/as-options.s: 'assembler' input unused [-Wunused-command-line-argument] ``` Maybe this helps with that. llvm-svn: 367176 --- clang/test/Driver/as-options.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/test/Driver/as-options.s b/clang/test/Driver/as-options.s index 889b34a2..72e9153 100644 --- a/clang/test/Driver/as-options.s +++ b/clang/test/Driver/as-options.s @@ -78,8 +78,8 @@ // But -m flags for the integrated assembler _should_ warn if the integrated // assembler is not in use. -// RUN: %clang -mrelax-all -fintegrated-as %s -S 2>&1 \ +// RUN: %clang -mrelax-all -fintegrated-as -x c++ %s -S 2>&1 \ // RUN: | FileCheck --check-prefix=NOWARN --allow-empty %s -// RUN: %clang -mrelax-all -fno-integrated-as %s -S 2>&1 \ +// RUN: %clang -mrelax-all -fno-integrated-as -x c++ %s -S 2>&1 \ // RUN: | FileCheck --check-prefix=WARN --allow-empty %s // WARN: unused -- 2.7.4