Author: Fangrui Song Date: 2020-11-05T20:08:23-08:00 New Revision: 247c5b5d69631c9f5fce9bf914f09f84e5cf8232
URL: https://github.com/llvm/llvm-project/commit/247c5b5d69631c9f5fce9bf914f09f84e5cf8232 DIFF: https://github.com/llvm/llvm-project/commit/247c5b5d69631c9f5fce9bf914f09f84e5cf8232.diff LOG: [test] Properly test -Werror-implicit-function-declaration and -Wvec-elem-size Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D90874 Added: Modified: clang/test/Modules/diagnose-missing-import.m clang/test/Sema/implicit-decl.c clang/test/Sema/vecshift.c Removed: ################################################################################ diff --git a/clang/test/Modules/diagnose-missing-import.m b/clang/test/Modules/diagnose-missing-import.m index f0e557ac09b0..2c67e01944a9 100644 --- a/clang/test/Modules/diagnose-missing-import.m +++ b/clang/test/Modules/diagnose-missing-import.m @@ -2,9 +2,6 @@ // RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -I%S/Inputs/diagnose-missing-import \ // RUN: -Werror=implicit-function-declaration -fsyntax-only \ // RUN: -fimplicit-module-maps -verify %s -// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -I%S/Inputs/diagnose-missing-import \ -// RUN: -Werror-implicit-function-declaration -fsyntax-only \ -// RUN: -fimplicit-module-maps -verify %s @import NCI; void foo() { diff --git a/clang/test/Sema/implicit-decl.c b/clang/test/Sema/implicit-decl.c index a04bb0e22ef1..2ae4c009bd47 100644 --- a/clang/test/Sema/implicit-decl.c +++ b/clang/test/Sema/implicit-decl.c @@ -1,4 +1,7 @@ -// RUN: %clang_cc1 %s -verify -fsyntax-only -Werror +// RUN: %clang_cc1 %s -verify -fsyntax-only -Werror=implicit-function-declaration + +/// -Werror-implicit-function-declaration is a deprecated alias used by many projects. +// RUN: %clang_cc1 %s -verify -fsyntax-only -Werror-implicit-function-declaration typedef int int32_t; typedef unsigned char Boolean; diff --git a/clang/test/Sema/vecshift.c b/clang/test/Sema/vecshift.c index 7ad19b82093b..f342e68547f4 100644 --- a/clang/test/Sema/vecshift.c +++ b/clang/test/Sema/vecshift.c @@ -1,5 +1,7 @@ // RUN: %clang_cc1 -fsyntax-only -DERR -verify %s +// RUN: %clang_cc1 -fsyntax-only -verify %s -Wno-error=vec-elem-size // RUN: %clang_cc1 -fsyntax-only -DEXT -DERR -verify %s +// RUN: %clang_cc1 -fsyntax-only -DEXT -verify %s -Wno-error=vec-elem-size #ifdef EXT typedef __attribute__((__ext_vector_type__(8))) char vector_char8; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits