Debian Codegraph @

gcc/testsuite/c-c++-common/analyzer/raw-data-cst-pr117262-1.c

raw
1 int
2 main ()
3 {
4 const unsigned char meow_bytes[] = {
5 0x69, 0x6e, 0x74, 0x0a, 0x6d, 0x61, 0x69, 0x6e, 0x20, 0x28, 0x29, 0x0a,
6 0x7b, 0x0a, 0x20, 0x20, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x20, 0x75, 0x6e,
7 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x20, 0x63, 0x68, 0x61, 0x72, 0x20,
8 0x6d, 0x65, 0x6f, 0x77, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5b, 0x5d,
9 0x20, 0x3d, 0x20, 0x7b, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x0a, 0x20, 0x20,
10 0x7d, 0x3b, 0x0a, 0x20, 0x20, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x20, 0x6d,
11 };
12 short meow[sizeof (meow_bytes) / sizeof (short)] = {};
13 for (int i = 0; i < (int) (sizeof (meow) / sizeof (short)); i++)
14 meow[i] = (meow_bytes[i * 2] << 8) | meow_bytes[i * 2 + 1];
15 if (meow[0] != (0x69 << 8) + 0x6e)
16 __builtin_abort ();
17 }