aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.3/gcc/testsuite/gcc.c-torture/compile/20071118-1.c
blob: d093d3fd86020488861875036904d5ea56d12441 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* PR rtl-optimization/34132 */
/* Testcase by Martin Michlmayr <tbm@cyrius.com> */

static char *m = "%s%u.msg";
extern void bar (int, const char *);
void foo (short x, int y, int z)
{
  if (x == 0)
    {
      bar (y, m);
      z = 1;
    }
  else if (x == 1)
    z = 0;
  bar (y, m);
  bar (z, "%d");
}