aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test-parsing.c
diff options
authorLinus Torvalds <torvalds@home.transmeta.com>2003-03-31 10:38:49 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 20:59:55 -0700
commitbdc6803647b8feb99bf35fa9d5b533351ae3dc4f (patch)
tree58cc00deeb16c86dfb481e1f32cee7dfc98630c3 /test-parsing.c
parent9d2258c5def38d3c161e8c2750b6e9fe62449bb3 (diff)
downloadsparse-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.c2
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);