Testcase for PR 17962.
authorRichard Henderson <rth@gcc.gnu.org>
Tue, 19 Oct 2004 19:21:41 +0000 (12:21 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 19 Oct 2004 19:21:41 +0000 (12:21 -0700)
From-SVN: r89285

gcc/testsuite/gcc.dg/align-2.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.dg/align-2.c b/gcc/testsuite/gcc.dg/align-2.c
new file mode 100644 (file)
index 0000000..f5c00fd
--- /dev/null
@@ -0,0 +1,6 @@
+/* PR 17962 */
+/* { dg-do compile } */
+/* { dg-options "" } */
+
+typedef float v4 __attribute__((vector_size(sizeof(float)*4)));
+extern char compile_time_assert[__alignof__(v4) == sizeof(float)*4 ? 1 : -1];