Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-convlshift-2.c
blobf21358c458430e0c6ea5122db13f75ac227590a7
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 unsigned int foo(unsigned char c)
6 int t1 = c;
7 int t2 = t1 << 8;
8 return t2;
11 int bar(unsigned char c)
13 unsigned int t1 = c;
14 unsigned int t2 = t1 << 8;
15 return t2;
18 /* { dg-final { scan-tree-dump-times "\\(int\\)" 1 "optimized" } } */
19 /* { dg-final { scan-tree-dump-times "\\(unsigned int\\)" 1 "optimized" } } */