From c43636a53d4b19d0ae10132b20020546650f2baf Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Wed, 6 Feb 2013 19:24:28 +0000 Subject: [PATCH] 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. llvm-svn: 174531 --- clang/test/Sema/incompatible-pointer-types-error.c | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 clang/test/Sema/incompatible-pointer-types-error.c diff --git a/clang/test/Sema/incompatible-pointer-types-error.c b/clang/test/Sema/incompatible-pointer-types-error.c deleted file mode 100644 index fda45cf..0000000 --- a/clang/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 *'}} -} -- 2.7.4