aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr79408-2.c
blob: 696fb58231aa7ac89cce415dfc3049a7e48ea886 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* PR tree-optimization/79408 */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */

void link_error (void);

void
foo (unsigned int y)
{
  if (y <= 7312)
    return;
  if (7312 % y != 7312)
    link_error ();
}

void
bar (int x, int y)
{
  if (y <= 7312)
    return;
  if (7312 % y != 7312)
    link_error ();
}

void
baz (int x, int y)
{
  if (y <= 7312)
    return;
  if (-7312 % y != -7312)
    link_error ();
}

/* { dg-final { scan-tree-dump-times "link_error" 0 "optimized"} } */