r174531 - Remove unneeded test. We have plenty of subgroup relations between warnings,

Ted Kremenek kremenek at apple.com
Wed Feb 6 11:24:28 PST 2013


Author: kremenek
Date: Wed Feb  6 13:24:28 2013
New Revision: 174531

URL: http://llvm.org/viewvc/llvm-project?rev=174531&view=rev
Log:
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.

Removed:
    cfe/trunk/test/Sema/incompatible-pointer-types-error.c

Removed: cfe/trunk/test/Sema/incompatible-pointer-types-error.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/incompatible-pointer-types-error.c?rev=174530&view=auto
==============================================================================
--- cfe/trunk/test/Sema/incompatible-pointer-types-error.c (original)
+++ cfe/trunk/test/Sema/incompatible-pointer-types-error.c (removed)
@@ -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.
-//
-// <rdar://problem/13062738>
-//
-
-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 *'}}
-}





More information about the cfe-commits mailing list