From 349dfad90e4738bec238ecea13554d5252d1935e Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 24 Oct 2003 13:00:25 +0100 Subject: [PATCH] * gcc.dg/c99-restrict-2.c: New test. From-SVN: r72889 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/c99-restrict-2.c | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/c99-restrict-2.c 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 + + * gcc.dg/c99-restrict-2.c: New test. + 2003-10-24 Nathan Sidwell 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 */ +/* { 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]); -- 2.30.2