From 12014db57cd60b1e9b082c494545225af5c36e30 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Mon, 21 Oct 2019 18:04:52 +0000 Subject: [PATCH] [test] Merge Driver/as-w-warnings.c into as-no-warnings.c For -integrated-as RUN lines we can remove -target. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@375439 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Driver/as-no-warnings.c | 9 +++++++-- test/Driver/as-w-option.c | 7 ------- 2 files changed, 7 insertions(+), 9 deletions(-) delete mode 100644 test/Driver/as-w-option.c diff --git a/test/Driver/as-no-warnings.c b/test/Driver/as-no-warnings.c index a63a560eeb..4338d117a6 100644 --- a/test/Driver/as-no-warnings.c +++ b/test/Driver/as-no-warnings.c @@ -1,6 +1,11 @@ // RUN: %clang -### %s -c -o tmp.o -target i686-pc-linux-gnu -fno-integrated-as -Wa,--no-warn 2>&1 | FileCheck -check-prefix=CHECK-NOIAS %s -// RUN: %clang -### %s -c -o tmp.o -target i686-pc-linux-gnu -integrated-as -Wa,--no-warn 2>&1 | FileCheck %s -// RUN: %clang %s -c -o %t.o -target i686-pc-linux-gnu -integrated-as -Wa,--no-warn 2>&1 | FileCheck -allow-empty --check-prefix=CHECK-AS-NOWARN %s +// RUN: %clang -### %s -c -o tmp.o -integrated-as -Wa,--no-warn 2>&1 | FileCheck %s + +/// -W is alias for --no-warn. +// RUN: %clang -### %s -c -o tmp.o -target i686-pc-linux-gnu -fno-integrated-as -Wa,-W 2>&1 | FileCheck -check-prefix=CHECK-NOIAS %s +// RUN: %clang -### %s -c -o tmp.o -integrated-as -Wa,-W 2>&1 | FileCheck %s + +// RUN: %clang %s -c -o %t.o -integrated-as -Wa,--no-warn 2>&1 | FileCheck -allow-empty --check-prefix=CHECK-AS-NOWARN %s // RUN: %clang %s -c -o %t.o -target i686-pc-linux-gnu -fno-integrated-as -Wa,--no-warn 2>&1 | FileCheck -allow-empty --check-prefix=CHECK-AS-NOWARN %s // RUN: not %clang %s -c -o %t.o -target i686-pc-linux-gnu -integrated-as -Wa,--fatal-warnings 2>&1 | FileCheck --check-prefix=CHECK-AS-FATAL %s // RUN: not %clang %s -c -o %t.o -target i686-pc-linux-gnu -fno-integrated-as -Wa,--fatal-warnings 2>&1 | FileCheck --check-prefix=CHECK-AS-FATAL %s diff --git a/test/Driver/as-w-option.c b/test/Driver/as-w-option.c deleted file mode 100644 index 5277701dd1..0000000000 --- a/test/Driver/as-w-option.c +++ /dev/null @@ -1,7 +0,0 @@ -// RUN: %clang -### %s -c -o tmp.o -fno-integrated-as --target=x86_64-linux-gnu -Wa,-W 2>&1 | FileCheck -check-prefix=CHECK-NOIAS %s -// RUN: %clang -### %s -c -o tmp.o -integrated-as -Wa,-W 2>&1 | FileCheck -check-prefix=CHECK-IAS %s - -// CHECK-IAS: "-cc1" {{.*}} "-massembler-no-warn" -// CHECK-NOIAS: "-W" - -__asm(".warning"); -- 2.40.0