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 | c43636a53d4b19d0ae10132b20020546650f2baf (patch) | |
tree | 6c51c5f483b2875125c4132858152afab2fc9547 /clang/test | |
parent | dd77041973fde6e27ce25af6950148c575eb4c69 (diff) | |
download | bcm5719-llvm-c43636a53d4b19d0ae10132b20020546650f2baf.tar.gz bcm5719-llvm-c43636a53d4b19d0ae10132b20020546650f2baf.zip |
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
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/Sema/incompatible-pointer-types-error.c | 16 |
1 files changed, 0 insertions, 16 deletions
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 fda45cf1630..00000000000 --- 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. -// -// <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 *'}} -} |