aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/ubsan/null-5.c
blob: c3c45b7c47e678f33556e62fd817687187c33d45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do run } */
/* { dg-options "-fsanitize=null -w" } */
/* { dg-shouldfail "ubsan" } */

typedef volatile const _Complex float *T;

int
main (void)
{
  T t = 0;
  if (*t)
    return 42;
  return 0;
}

/* { dg-output "load of null pointer of type 'volatile const complex float'(\n|\r\n|\r)" } */