blob: 5db1664684d93058899380dc315a58fddbef5e84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/* PR c++/88215 */
/* { dg-do compile } */
/* { dg-options "-fsanitize=integer-divide-by-zero" } */
int
foo (void)
{
int a = 2, __attribute__ ((__unused__)) b = 1;
int f = a / b;
return f;
}
|