Debian Codegraph @

gcc/testsuite/g++.dg/analyzer/named-functions.C

raw
1 #define NULL ((void *)0)
2
3 namespace my
4 {
5 int socket (int, int, int);
6 };
7
8 void test_my_socket ()
9 {
10 /* This shouldn't match the known function "::socket". */
11 my::socket (0, 0, 0); /* { dg-bogus "leak" } */
12 }