libstdc++: Qualify calls in <bits/stl_uninitialized.h> to prevent ADL
[official-gcc.git] / gcc / testsuite / c-c++-common / ubsan / null-11.c
blob659a5f2a07ec7fe70861b87e72df476e585492fb
1 /* { dg-do run } */
2 /* { dg-options "-fsanitize=null -w" } */
3 /* { dg-shouldfail "ubsan" } */
5 struct S {
6 int i;
7 };
9 int
10 main (void)
12 struct S **s = 0;
13 return (*s)->i;
16 /* { dg-output "load of null pointer of type 'struct S \\*'" } */