error: no declaration matches ‘void foo::test(int, int, const void*, int)
File bad-def.cc
Line 8
Column 6
8 void foo::test(int i, int j, const void *ptr, int k)
^~~
note: class foo’ defined here
File bad-def.cc
Line 1
Column 7
1 class foo
^~~