diff options
author | Fangrui Song <maskray@google.com> | 2019-10-21 18:04:52 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-10-21 18:04:52 +0000 |
commit | 0cfd9e5b580f06d63be7054ba4efa0524011f096 (patch) | |
tree | b054c7f230ba3e5783724b1bb7fa0db56dfd7cde | |
parent | 78424e5f8417f5014006e951dbe813d092cb567f (diff) | |
download | llvm-0cfd9e5b580f06d63be7054ba4efa0524011f096.zip llvm-0cfd9e5b580f06d63be7054ba4efa0524011f096.tar.gz llvm-0cfd9e5b580f06d63be7054ba4efa0524011f096.tar.bz2 |
[test] Merge Driver/as-w-warnings.c into as-no-warnings.c
For -integrated-as RUN lines we can remove -target.
llvm-svn: 375439
-rw-r--r-- | clang/test/Driver/as-no-warnings.c | 9 | ||||
-rw-r--r-- | clang/test/Driver/as-w-option.c | 7 |
2 files changed, 7 insertions, 9 deletions
diff --git a/clang/test/Driver/as-no-warnings.c b/clang/test/Driver/as-no-warnings.c index a63a560..4338d11 100644 --- a/clang/test/Driver/as-no-warnings.c +++ b/clang/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/clang/test/Driver/as-w-option.c b/clang/test/Driver/as-w-option.c deleted file mode 100644 index 5277701d..0000000 --- a/clang/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"); |