1 /* Test -f*sanitize*=all */
3 /* { dg-skip-if "" { *-*-* } { "*" } { "-O2" } } */
4 /* { dg-skip-if "" { *-*-* } { "-flto -fno-fat-lto-objects" } } */
5 /* { dg-options "-fsanitize=undefined,float-cast-overflow,float-divide-by-zero -fno-sanitize=all -fdump-tree-optimized" } */
10 f1 (int x
, int y
, int z
)
12 return a
[x
] + (1 << y
) + (100 / z
);
18 char *p
= (char *) __builtin_calloc (64, 1);
24 f3 (int x
, int *y
, double z
, double w
)
28 __builtin_unreachable ();
29 asm volatile ("" : : "r" (&a
[0]));
39 /* { dg-final { scan-tree-dump-not "__ubsan_" "optimized" } } */
40 /* { dg-final { scan-tree-dump-not "UBSAN_CHECK_" "optimized" } } */