2014-04-23 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gfortran.dg / lto / pr60635_1.c
blobeddc569e6504a308b148ae9a6e4f770d6c5c0caa
1 #include <stdint.h>
2 #include <stdbool.h>
4 static bool littleendian=true;
6 uint16_t bigendc16(union{uint16_t * n;uint8_t* b;}x){
8 if (!littleendian) return *x.n;
10 uint16_t res = ((uint16_t)(x.b[1])<<0) |
11 ((uint16_t)(x.b[0])<<8);
12 return res;