]>
Commit | Line | Data |
---|---|---|
1d244020 RS |
1 | /* { dg-do compile } */ |
2 | /* { dg-options "-O2 -fdump-tree-optimized" } */ | |
3 | ||
4 | unsigned int foo(unsigned char c) | |
5 | { | |
6 | int t1 = c; | |
7 | int t2 = t1 << 8; | |
8 | return t2; | |
9 | } | |
10 | ||
11 | int 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 |