]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/fold-convlshift-2.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / fold-convlshift-2.c
CommitLineData
1d244020
RS
1/* { dg-do compile } */
2/* { dg-options "-O2 -fdump-tree-optimized" } */
3
4unsigned int foo(unsigned char c)
5{
6 int t1 = c;
7 int t2 = t1 << 8;
8 return t2;
9}
10
11int bar(unsigned char c)
12{
13 unsigned int t1 = c;
14 unsigned int t2 = t1 << 8;
15 return t2;
16}
17
18/* { dg-final { scan-tree-dump-times "\\(int\\)" 1 "optimized" } } */
19/* { dg-final { scan-tree-dump-times "\\(unsigned int\\)" 1 "optimized" } } */
20