diff options
author | Ted Kremenek <kremenek@apple.com> | 2013-02-06 19:24:28 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2013-02-06 19:24:28 +0000 |
commit | eb54aa584dbe19c0f7c4a9a0010815a85423858b (patch) | |
tree | 2dca4bedcca78240929243958a43c6eaeb6e6754 | |
parent | 1975c17e25b2d781bba95d47e8dabe6005815d5a (diff) |
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
-rw-r--r-- | test/Sema/incompatible-pointer-types-error.c | 16 |
1 files changed, 0 insertions, 16 deletions
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. -// -// <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 *'}} -} |