diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/objc.dg/headers.m | 16 |
2 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7b23832..7c1e3bc 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2003-04-11 David Chad <davidc@freebsd.org> + Loren J. Rittle <ljrittle@acm.org> + + libobjc/8562 + * objc.dg/headers.m: New test. + 2003-04-10 Zack Weinberg <zack@codesourcery.com> * gcc.c-torture/execute/builtin-noret-2.c: New. diff --git a/gcc/testsuite/objc.dg/headers.m b/gcc/testsuite/objc.dg/headers.m new file mode 100644 index 0000000..5435a75 --- /dev/null +++ b/gcc/testsuite/objc.dg/headers.m @@ -0,0 +1,16 @@ +// Test for obscure conflicts with the system headers (inspired by similar +// test in libstdc++-v3). Author: Loren J. Rittle <ljrittle@acm.org>. +// { dg-options "-Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wshadow" } +// { dg-do compile } + +#include <objc/NXConstStr.h> +#include <objc/Object.h> +#include <objc/Protocol.h> +#include <objc/encoding.h> +#include <objc/hash.h> +#include <objc/objc-api.h> +#include <objc/objc-list.h> +#include <objc/objc.h> +#include <objc/sarray.h> +#include <objc/thr.h> +#include <objc/typedstream.h> |