blob: d6f845932ef2f6a51b42bbb99175f0a050181b7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/* PR tree-optimization/113370 */
/* { dg-do run { target bitint } } */
/* { dg-options "-std=c23 -pedantic-errors" } */
/* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O0" "-O2" } } */
/* { dg-skip-if "" { ! run_expensive_tests } { "-flto" } { "" } } */
#if __BITINT_MAXWIDTH__ >= 255
_BitInt(255)
foo (int s)
{
return -(_BitInt(255)) 3 >> s;
}
#endif
int
main ()
{
#if __BITINT_MAXWIDTH__ >= 255
if (foo (51) != -1)
__builtin_abort ();
#endif
return 0;
}
|