summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20030314-1.c
blob: 02d4fed526aec6d140763be27763647759804c33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR optimization/8396 */
/* Originator: <papadopo@shfj.cea.fr> */

/* Verify that the tree inliner doesn't mess up the types
   when passing the value of read-only constant arguments.  */

static inline bar(const short int xs, const short int xe)
{
  if (xe && (xs < xe))
    ;
}
  
void f()
{
  short int xe;

  bar(0, xe);
}