expand: Fix up expansion of VIEW_CONVERT_EXPR to BITINT_TYPE [PR117354]
[official-gcc.git] / gcc / testsuite / c-c++-common / pr85822.c
blob3b09188ab47c3206b52427f581d6d1922521e42e
1 /* { dg-options "-O2" } */
2 /* { dg-do run } */
4 static const long long int TagTypeNumber = 0xffff000000000000ll;
6 long long int x;
8 void foo(void)
10 x = TagTypeNumber + 1;
13 int main(int argc, char **argv)
15 if (argc > 0)
16 foo ();
18 if ((x & TagTypeNumber) == TagTypeNumber)
20 unsigned y = (unsigned)x;
21 __builtin_printf ("v: %u\n", y);
22 if (y != 1)
23 __builtin_abort ();
26 return 0;