aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/cast-2.c
blob: d665e924831f17edd85fef10159226ffab02ba3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-optimized" } */


void f(signed short *a, unsigned char *c)
{
  unsigned long b = *a;
  *c = ((unsigned char)b);
}


/* { dg-final { scan-tree-dump-not "\\(long unsigned int\\)" "optimized"} } */