summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20010904-1.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-05 08:39:33 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-05 08:39:33 +0000
commitef7638509bc5a5288502e940ee5bd5b12171d667 (patch)
tree108f5878243f0736cdbb9a016d2fe4313c3d7a87 /gcc/testsuite/gcc.c-torture/execute/20010904-1.c
parentb69075973b47a2ec26bafa74ab1062b12e15f61a (diff)
downloadgcc-ef7638509bc5a5288502e940ee5bd5b12171d667.tar.gz
* gcc.c-torture/execute/20010904-1.c: New test.
* gcc.c-torture/execute/20010904-2.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45404 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/20010904-1.c')
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20010904-1.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/20010904-1.c b/gcc/testsuite/gcc.c-torture/execute/20010904-1.c
new file mode 100644
index 00000000000..92b258b5202
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/execute/20010904-1.c
@@ -0,0 +1,11 @@
+typedef struct x { int a; int b; } __attribute__((aligned(32))) X;
+typedef struct y { X x[32]; int c; } Y;
+
+Y y[2];
+
+int main(void)
+{
+ if (((char *)&y[1] - (char *)&y[0]) & 31)
+ abort ();
+ exit (0);
+}