aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/ubsan/pr79757-3.c
blob: 22fe3deef2dadd504e898937d5df5dd90fb67349 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR sanitizer/79757 */
/* { dg-do compile } */
/* { dg-require-effective-target int128 } */
/* { dg-options "-fsanitize=undefined" } */

unsigned __int128 x, y;

void
fn1 (z)
  __auto_type z = x / y; /* { dg-error "parameter 'z' is initialized" } */
{
}

void
fn2 (z)
  __auto_type z = x >> y; /* { dg-error "parameter 'z' is initialized" } */
{
}