3 // { dg-options "-fsanitize=null -std=c++11" }
5 int *fn (void) { return 0; }
11 static int &b = *fn ();
12 static int &c (*fn ());
13 static int &d {*fn ()};
17 // { dg-output "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'" }