From: Ted Kremenek Date: Wed, 6 Feb 2013 19:24:28 +0000 (+0000) Subject: Remove unneeded test. We have plenty of subgroup relations between warnings, X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb54aa584dbe19c0f7c4a9a0010815a85423858b;p=clang Remove unneeded test. We have plenty of subgroup relations between warnings, and for those we care about we should have a general way of testing them. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174531 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Sema/incompatible-pointer-types-error.c b/test/Sema/incompatible-pointer-types-error.c deleted file mode 100644 index fda45cf163..0000000000 --- a/test/Sema/incompatible-pointer-types-error.c +++ /dev/null @@ -1,16 +0,0 @@ -// RUN: %clang -fsyntax-only %s -Xclang -verify -Werror=incompatible-pointer-types -Wno-error=incompatible-pointer-types-discards-qualifiers - -// This test ensures that the subgroup of -Wincompatible-pointer-types warnings that -// concern discarding qualifers can be promoted (or not promoted) to an error *separately* from -// the other -Wincompatible-pointer-type warnings. -// -// -// - -void foo(char *s); // expected-note {{passing argument to parameter 's' here}} -void baz(int *s); // expected-note {{passing argument to parameter 's' here}} - -void bar(const char *s) { - foo(s); // expected-warning {{passing 'const char *' to parameter of type 'char *' discards qualifiers}} - baz(s); // expected-error {{incompatible pointer types passing 'const char *' to parameter of type 'int *'}} -}