OSDN Git Service

PR c++/6392
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Oct 2003 08:39:34 +0000 (08:39 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Oct 2003 08:39:34 +0000 (08:39 +0000)
        * 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

gcc/testsuite/g++.dg/ext/restrict1.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/ext/restrict1.C b/gcc/testsuite/g++.dg/ext/restrict1.C
new file mode 100644 (file)
index 0000000..049af1f
--- /dev/null
@@ -0,0 +1,7 @@
+// PR c++/6392
+// { dg-do compile }
+
+struct A
+{
+  int* __restrict__ data[10];
+};