PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / pr77673.c
blobb41cf04e7717bb2871d077018ec914aa21c08f3e
1 /* { dg-do compile { target fpic } } */
2 /* { dg-require-effective-target bswap } */
3 /* { dg-options "-O2 -fPIC -fdump-tree-bswap" } */
4 /* { dg-additional-options "-march=z900" { target s390*-*-* } } */
6 void mach_parse_compressed(unsigned char* ptr, unsigned long int* val)
8 if (ptr[0] < 0xC0U) {
9 *val = ptr[0] + ptr[1];
10 return;
13 *val = ((unsigned long int)(ptr[0]) << 24)
14 | ((unsigned long int)(ptr[1]) << 16)
15 | ((unsigned long int)(ptr[2]) << 8)
16 | ptr[3];
19 /* { dg-final { scan-tree-dump-not "load_dst_\\d+ =.* if \\(" "bswap" } } */