diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-09 08:39:34 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-09 08:39:34 +0000 |
commit | d1a8f235fa6917dc007bd5136302f8d7a8c5614c (patch) | |
tree | d0f3a81c3e9f324503e577709263592a180379ee /gcc/testsuite | |
parent | adfb367fdaec59e3106dac538daeae3371f61afa (diff) | |
download | gcc-d1a8f235fa6917dc007bd5136302f8d7a8c5614c.tar.gz |
PR c++/6392
* cp/tree.c (build_cplus_array_type): Handle all quals the same.
(cp_build_qualified_type_real): Look through arrays first.
* c-common.c (c_build_qualified_type): Look through arrays first.
(c_apply_type_quals_to_decl): Look through arrays.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72260 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/g++.dg/ext/restrict1.C | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/ext/restrict1.C b/gcc/testsuite/g++.dg/ext/restrict1.C new file mode 100644 index 00000000000..049af1fa439 --- /dev/null +++ b/gcc/testsuite/g++.dg/ext/restrict1.C @@ -0,0 +1,7 @@ +// PR c++/6392 +// { dg-do compile } + +struct A +{ + int* __restrict__ data[10]; +}; |