1 /* { dg-do compile } */ 2 /* { dg-options "-O -fdump-tree-cddce1" } */ 3 4 __UINT8_TYPE__ f(__UINT16_TYPE__ b)5f(__UINT16_TYPE__ b) 6 { 7 __UINT8_TYPE__ a; 8 #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ 9 __builtin_memcpy(&a, &b, sizeof a); 10 #elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ 11 __builtin_memcpy(&a, (char *)&b + sizeof a, sizeof a); 12 #else 13 a = b; 14 #endif 15 return a; 16 } 17 18 /* { dg-final { scan-tree-dump "_\[0-9\]+ = \\(\[^)\]+\\) b" "cddce1" } } */ 19