OSDN Git Service

2010-01-21 Martin Jambor <mjambor@suse.cz>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / tree-ssa / 20050128-1.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-gimple" } */
3
4 int
5 foo (int align)
6 {
7   int off = 0 % align;
8   return off ? align - off : 0;
9 }
10
11 /* We should have optimized away the mod operator before we gimpleized
12    the code.  */
13 /* { dg-final { scan-tree-dump-times "%" 0 "gimple"} } */
14 /* { dg-final { cleanup-tree-dump "gimple" } } */