mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
11 lines
409 B
C
11 lines
409 B
C
// Provide an incomplete definition of Foo.
|
|
struct Foo;
|
|
typedef struct Foo* FooPtr;
|
|
|
|
// When this file is included from a.c, the extractor will see a complete
|
|
// definition of Foo, but not when it's included b.c. We want to check that we
|
|
// don't see these variables duplicated in the database because of it.
|
|
extern void (*some_func_ptr)(struct Foo *foo);
|
|
extern struct Foo* foo_ptr1;
|
|
extern FooPtr foo_ptr2;
|