Add new test to verify that the array index, limit, and stride are
[official-gcc.git] / gcc / testsuite / gcc.dg / pr44290-2.c
blob1951a519dfc04ecfaef5a6c0a1e79090afd3b66d
1 /* { dg-do compile { target arm*-*-* avr-*-* mcore-*-* rx-*-* spu-*-* } } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 static unsigned long __attribute__((naked))
5 foo (unsigned long base)
7 asm volatile ("dummy");
9 unsigned long
10 bar (void)
12 static int start, set;
14 if (!set)
16 set = 1;
17 start = foo (0);
20 return foo (start);
23 /* { dg-final { scan-tree-dump "foo \\\(long unsigned int base\\\)" "optimized" } } */
24 /* { dg-final { cleanup-tree-dump "optimized" } } */