gcc/testsuite/c-c++-common/pr108365.c
raw| 1 | /* PR c++/108365 */ |
| 2 | /* { dg-do compile { target { { ilp32 || lp64 } || llp64 } } } */ |
| 3 | /* { dg-options "-O2 -fdump-tree-gimple" } */ |
| 4 | /* { dg-final { scan-tree-dump-not " \\\((int|unsigned short int|long long int|unsigned int)\\\) " "gimple" } } */ |
| 5 | |
| 6 | unsigned short |
| 7 | foo (unsigned short x, unsigned short y) |
| 8 | { |
| 9 | return (unsigned) x / y; |
| 10 | } |
| 11 | |
| 12 | unsigned int |
| 13 | bar (unsigned int x, unsigned int y) |
| 14 | { |
| 15 | return (long long) x / y; |
| 16 | } |