libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / pr115221.c
blobf139394e5c089b60ef1db36ec0ab243048664499
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
4 typedef unsigned uint32_t;
5 int cde40_t;
6 int offset;
7 void aal_test_bit();
8 uint32_t cde40_key_pol();
9 long cde40_offset_check(uint32_t pos) {
10 cde40_key_pol();
11 if (cde40_t)
12 return (offset - 2) % (((pos == 3) ? 18 : 26)) != 0;
13 return 0;
15 void cde40_check_struct() {
16 uint32_t i, j, to_compare;
17 for (;; i++) {
18 cde40_offset_check(i);
19 if (to_compare == 0) {
20 if (i && cde40_key_pol())
22 to_compare = i;
23 continue;
25 j = to_compare;
26 for (; j < i; j++)
27 aal_test_bit();