* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / ubsan / null-3.C
blob0dfb879990b1853471208eace88bf551b02db2fe
1 // { dg-do run }
2 // { dg-options "-fsanitize=null" }
4 int
5 main (void)
7   int *p = 0;
9   int &r1 = *p;
10   int &r2 = *p;
11   int &r3 = *p;
12   int &r4 = *p;
13   int &r5 = *p;
16 // { dg-output "reference binding to null pointer of type 'int'(\n|\r\n|\r)" }
17 // { dg-output "\[^\n\r]*reference binding to null pointer of type 'int'(\n|\r\n|\r)" }
18 // { dg-output "\[^\n\r]*reference binding to null pointer of type 'int'(\n|\r\n|\r)" }
19 // { dg-output "\[^\n\r]*reference binding to null pointer of type 'int'(\n|\r\n|\r)" }
20 // { dg-output "\[^\n\r]*reference binding to null pointer of type 'int'" }