aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/cast-1.c
blob: 0f33ab58b3e9da50640a56bcfdfe62e6f36cd2ba (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 char *a, unsigned char *c)
{
  unsigned short b = *a;
  *c = ((unsigned char)b);
}


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