PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-and-lshift.c
blob2905095ff743eb6a9f10b429fe23cdc86fc09539
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-original" } */
4 int f(int x)
6 return (x << 2) & 128;
9 int g(int x)
11 return !!(x & 32) << 7;
14 int h(int x)
16 return ((x >> 5) & 1) << 7;
19 int i(int x)
21 return (x & 32) >> 5 << 7;
24 int j(int x)
26 return ((x >> 5) & 1) ? 128 : 0;
29 int k(int x)
31 return (x & 32) ? 128 : 0;
34 /* { dg-final { scan-tree-dump-not " \\? " "original" } } */
35 /* { dg-final { scan-assembler-not "sarl" { target i?86-*-* x86_64-*-* } } }" */