LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / pr81592.c
bloba37703af4970216c00219dbdf8a25638af6839c5
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -Wall -fno-strict-overflow -Wstrict-overflow=2 -fsanitize=signed-integer-overflow" } */
4 #include <stdio.h>
6 int proc_keys_show(long expiry, long now)
8 unsigned long timo;
9 char xbuf[4];
11 if (now < expiry) {
12 timo = expiry - now;
13 if (timo < 60)
14 sprintf(xbuf, "%lus", timo);
17 return 0;