Add and parse unexposed entity

This commit is contained in:
Jonathan Müller 2017-03-30 12:04:18 +02:00
commit df684694cc
8 changed files with 94 additions and 2 deletions

View file

@ -32,7 +32,8 @@ enum class bar
void func(int(*)(int));
extern void(* ptr)(int(*)(int))=&func;
)";
template<typename T>int var;)";
auto file = parse({}, "code_generator.cpp", code);
REQUIRE(get_code(*file) == code);