aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDavid Chad <davidc@freebsd.org>2003-04-11 04:30:33 +0000
committerLoren J. Rittle <ljrittle@gcc.gnu.org>2003-04-11 04:30:33 +0000
commit0b87e18ef1c2c54458dd76a54ea38ae1571dc237 (patch)
tree8cb1d7bf41f29d8a1c0357dd74e7f0eb0660328f /gcc
parent339a28b96a306cb323a66e9142ab090d36f42ba8 (diff)
downloadgcc-0b87e18ef1c2c54458dd76a54ea38ae1571dc237.zip
gcc-0b87e18ef1c2c54458dd76a54ea38ae1571dc237.tar.gz
gcc-0b87e18ef1c2c54458dd76a54ea38ae1571dc237.tar.bz2
(in libobjc:)
libobjc/8562 (in libobjc:) * objc/hash.h (hash_string): Constify correctly. (compare_ptrs): Use direct compare. * objc/objc-list.h (list_nth): Rename index to indx to avoid shadow. * objc/sarray.h: Global rename index to indx to avoid shadow. (in gcc/testsuite:) * objc.dg/headers.m: New test. Co-Authored-By: Loren J. Rittle <ljrittle@acm.org> From-SVN: r65461
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/objc.dg/headers.m16
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>