diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/shand.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/shand.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/shand.c b/gcc/testsuite/gcc.c-torture/compile/shand.c new file mode 100644 index 0000000..5a40196 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/shand.c @@ -0,0 +1,11 @@ +int +foo (x, c) + int x; +{ + return x >> 24 & 0xff; +} + +bar (x) +{ + return (int)(x & 0xfffff) << 13; +} |