diff options
| author | Linus Torvalds <torvalds@home.transmeta.com> | 2003-03-31 10:38:49 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 20:59:55 -0700 |
| commit | bdc6803647b8feb99bf35fa9d5b533351ae3dc4f (patch) | |
| tree | 58cc00deeb16c86dfb481e1f32cee7dfc98630c3 /test-parsing.c | |
| parent | 9d2258c5def38d3c161e8c2750b6e9fe62449bb3 (diff) | |
| download | sparse-dev-bdc6803647b8feb99bf35fa9d5b533351ae3dc4f.tar.gz | |
Parse initializers properly. We parsed them before, but we didn't
add them to the parse tree. We now do.
Diffstat (limited to 'test-parsing.c')
| -rw-r--r-- | test-parsing.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test-parsing.c b/test-parsing.c index a2df1f5f..48f2ca59 100644 --- a/test-parsing.c +++ b/test-parsing.c @@ -119,6 +119,8 @@ static void clean_up_symbol(struct symbol *sym, void *_parent, int flags) struct symbol *type; examine_symbol_type(sym); + if (sym->initializer) + evaluate_expression(sym->initializer); type = sym->ctype.base_type; if (type && type->type == SYM_FN) { symbol_iterate(type->arguments, clean_up_symbol, parent); |
