libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr107767.c
blobbace8abfd9c82e5705aafa062b083b74bcfc218a
1 /* { dg-do compile } */
2 /* { dg-options "-Os -fdump-tree-switchconv" } */
4 int firewall2(const unsigned char *restrict data)
6 const unsigned short dst_port = *((const unsigned short *)data + 32);
8 if (dst_port == 15) return 1;
9 if (dst_port == 23) return 1;
10 if (dst_port == 47) return 1;
11 if (dst_port == 45) return 1;
12 if (dst_port == 42) return 1;
13 if (dst_port == 1) return 1;
14 if (dst_port == 2) return 1;
15 if (dst_port == 3) return 1;
17 return 0;
20 /* { dg-final { scan-tree-dump-not "CSWTCH" "switchconv" } } */