OSDN Git Service

PR tree-optimization/30843
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / pr27661.c
1 /* This used to ICE on s390 due to a reload bug.  */
2
3 /* { dg-do compile { target s390*-*-* } } */
4 /* { dg-options "-O2 -march=z990 -ftracer" } */
5
6 extern int memcmp (const void *s1, const void *s2, unsigned long n);
7 extern int printf (__const char *__restrict __format, ...);
8
9 struct test
10 {
11   char tmp[4096];
12   char msgtype[2];
13 };
14
15 void test (struct test *testtb)
16 {
17   if (testtb)
18     printf ("a");
19
20   if (memcmp(testtb->msgtype, "a", 2))
21     printf ("a");
22
23   printf ("b");
24 }
25