diff options
author | Jason Merrill <jason@gcc.gnu.org> | 2001-08-24 08:11:11 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2001-08-24 08:11:11 -0400 |
commit | 271e349bc386151b9b6410fa85d8f33a5857e02b (patch) | |
tree | ac33c280df1f9d4de5e5f3e88cdabfa4685a6d31 /gcc | |
parent | 4ae08f95bb712ae37974e429d6c572a2300a0581 (diff) | |
download | gcc-271e349bc386151b9b6410fa85d8f33a5857e02b.zip gcc-271e349bc386151b9b6410fa85d8f33a5857e02b.tar.gz gcc-271e349bc386151b9b6410fa85d8f33a5857e02b.tar.bz2 |
tree.c (cp_build_qualified_type_real): Use get_qualified_type.
* 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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/g++.dg/ext/align1.C | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/ext/align1.C b/gcc/testsuite/g++.dg/ext/align1.C new file mode 100644 index 0000000..75986fd --- /dev/null +++ b/gcc/testsuite/g++.dg/ext/align1.C @@ -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)); +} |