c++: Fix another crash with invalid new operators [PR117463]
[official-gcc.git] / gcc / testsuite / gcc.target / arm / pr46631.c
blob6f6dc4e85de03c7e418173f359d89c0a34f7dafa
1 /* { dg-options "-mthumb -Os" } */
2 /* { dg-require-effective-target arm_thumb2_ok } */
3 /* { dg-final { scan-assembler "ands" } } */
5 struct S {
6 int bi_buf;
7 int bi_valid;
8 };
10 int tz (struct S* p, int bits, int value)
12 if (p == 0) return 1;
13 p->bi_valid = bits;
14 p->bi_buf = value & ((1 << bits) - 1);
15 return 0;