summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/alpha/pr42113.c
blob: 228c14abb64c4719895541a0c8d9398695033bcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-O2" } */

int foo (int a, int b)
{
  int bar = a * sizeof (int);

  if (b)
    bar += sizeof (int);

  return bar;
}