1 /* PR tree-optimization/80497 - ICE at -O1 and above on valid code on
2 x86_64-linux-gnu in "tree_to_uhwi"
4 { dg-options "-O2 -Wall -Wformat-overflow" }
5 { dg-require-effective-target int128 } */
9 const __int128_t sint128_max
10 = (__int128_t
)1 << (sizeof sint128_max
* __CHAR_BIT__
- 2);
16 __builtin_sprintf (buf
, "%*i", si128
, 0);
18 __builtin_sprintf (buf
, "%.*i", si128
, 0);
20 __builtin_sprintf (buf
, "%i", si128
);
22 __builtin_sprintf (buf
, "%2$*1$i", si128
, 0);
24 __builtin_sprintf (buf
, "%2$.*1$i", si128
, 0);
29 __int128_t si128
= sint128_max
;
31 __builtin_sprintf (buf
, "%*i", si128
, 0);
33 __builtin_sprintf (buf
, "%.*i", si128
, 0);
35 __builtin_sprintf (buf
, "%i", si128
);
37 __builtin_sprintf (buf
, "%2$*1$i", si128
, 0);
39 __builtin_sprintf (buf
, "%2$.*1$i", si128
, 0);
42 /* { dg-prune-output "expects argument of type .int." } */