]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree.c (cp_build_qualified_type_real): Use get_qualified_type.
authorJason Merrill <jason@gcc.gnu.org>
Fri, 24 Aug 2001 12:11:11 +0000 (08:11 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 24 Aug 2001 12:11:11 +0000 (08:11 -0400)
        * tree.c (cp_build_qualified_type_real): Use get_qualified_type.
        (build_cplus_array_type): Use cp_build_qualified_type, not
        TYPE_MAIN_VARIANT, to get an unqualified version.

From-SVN: r45147

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

diff --git a/gcc/testsuite/g++.dg/ext/align1.C b/gcc/testsuite/g++.dg/ext/align1.C
new file mode 100644 (file)
index 0000000..75986fd
--- /dev/null
@@ -0,0 +1,17 @@
+// Test that __attribute__ ((aligned)) is preserved.
+
+extern "C" int printf (const char *, ...);
+
+typedef float at[4][4] __attribute__ ((aligned (64)));
+
+float dummy[4][4][15];
+
+static volatile at a1[15];
+
+float f1 __attribute__ ((aligned (64)));
+
+int main()
+{
+  printf ("%d %d\n", __alignof (a1), __alignof (f1));
+  return (__alignof (a1) < __alignof (f1));
+}