summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-24 12:00:25 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-24 12:00:25 +0000
commit54c8cd87bac91eb542eca93e4a5b9bc73fee09ea (patch)
tree61c9ea8f5b0405ee14f629ca54eb2c7a6c3bd888
parentfd7beb09c075043baec7715b8fb28b769432e260 (diff)
downloadppe42-gcc-54c8cd87bac91eb542eca93e4a5b9bc73fee09ea.tar.gz
ppe42-gcc-54c8cd87bac91eb542eca93e4a5b9bc73fee09ea.zip
* gcc.dg/c99-restrict-2.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72889 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/c99-restrict-2.c12
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 26eec79ce03..720df2382d5 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2003-10-24 Joseph S. Myers <jsm@polyomino.org.uk>
+
+ * gcc.dg/c99-restrict-2.c: New test.
+
2003-10-24 Nathan Sidwell <nathan@codesourcery.com>
PR c++/12698, c++/12699, c++/12700, c++/12566
diff --git a/gcc/testsuite/gcc.dg/c99-restrict-2.c b/gcc/testsuite/gcc.dg/c99-restrict-2.c
new file mode 100644
index 00000000000..2adc5f2b36f
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/c99-restrict-2.c
@@ -0,0 +1,12 @@
+/* Test for restrict: in C99 only. Test handling of arrays of restricted
+ pointers. */
+/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
+/* { dg-do compile } */
+/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */
+
+typedef int *ipa[2];
+
+int *restrict x[2];
+restrict ipa y;
+
+void f(int *restrict a[2], restrict ipa b, int *restrict c[restrict]);
OpenPOWER on IntegriCloud