Permalink
Browse files

Add a test for function pointer field bug.

  • Loading branch information...
Andersbakken committed Aug 19, 2017
1 parent 22fa3c8 commit 972d5a483631303603f95c2d66d6312478605bd0
@@ -0,0 +1,5 @@
[
{ "name": "classes/structs instance containing a pointer pointer field should not be a reference to the function pointer",
"rc-command": [ "--references", "{0}/main.cpp:3:12" ],
"expectation": [ "{0}/main.cpp:10:7" ] }
]
@@ -0,0 +1,12 @@
struct Foo
{
void (*foo)();
};
int main()
{
Foo f;
f.foo();
return 0;
}

0 comments on commit 972d5a4

Please sign in to comment.