1 /* PR sanitizer/82072 */
3 /* { dg-options "-fsanitize=signed-integer-overflow" } */
8 long long l
= -__LONG_LONG_MAX__
- 1;
10 asm volatile ("" : "+r" (i
));
12 asm volatile ("" : "+r" (i
));
14 asm volatile ("" : "+r" (i
));
18 /* { dg-output "signed integer overflow: 0 - -9223372036854775808 cannot be represented in type 'long long int'\[^\n\r]*(\n|\r\n|\r)" } */
19 /* { dg-output "\[^\n\r]*negation of -9223372036854775808 cannot be represented in type 'long long int'\[^\n\r]*; cast to an unsigned type to negate this value to itself" } */