From: Jian Cai Date: Tue, 15 Oct 2019 18:17:08 +0000 (+0000) Subject: [clang] refactor -Wa,-W test cases. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0650355c09ab8e6605ae37b818270a7a7c8ce2c7;p=platform%2Fupstream%2Fllvm.git [clang] refactor -Wa,-W test cases. Remove REQUIRES and only keep the clang driver tests, since the assembler are already tested with -Wa,--no-warn. This way we could run the test on non-linux platforms and catch breaks on them. llvm-svn: 374932 --- diff --git a/clang/test/Driver/as-w-option.c b/clang/test/Driver/as-w-option.c index 96922ae..42d6df2 100644 --- a/clang/test/Driver/as-w-option.c +++ b/clang/test/Driver/as-w-option.c @@ -1,17 +1,7 @@ // RUN: %clang -### %s -c -o tmp.o -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 -check-prefix=CHECK-IAS %s -// RUN: %clang %s -c -o %t.o -integrated-as -Wa,-W 2>&1 | FileCheck -allow-empty --check-prefix=CHECK-AS-NOWARN %s -// RUN: %clang %s -c -o %t.o -fno-integrated-as -Wa,-W 2>&1 | FileCheck -allow-empty --check-prefix=CHECK-AS-NOWARN %s -// RUN: not %clang %s -c -o %t.o -integrated-as -Wa,--fatal-warnings 2>&1 | FileCheck --check-prefix=CHECK-AS-FATAL %s -// RUN: not %clang %s -c -o %t.o -fno-integrated-as -Wa,--fatal-warnings 2>&1 | FileCheck --check-prefix=CHECK-AS-FATAL %s - -// REQUIRES: clang-driver -// REQUIRES: linux // CHECK-IAS: "-cc1" {{.*}} "-massembler-no-warn" // CHECK-NOIAS: "-W" -// CHECK-AS-NOWARN-NOT: warning: -// CHECK-AS-FATAL-NOT: warning: -// CHECK-AS-FATAL: error __asm(".warning");