aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@redhat.com>2004-05-24 17:07:37 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:01:43 -0700
commit9465af87f4da0a786ffbcdf35ac5f274be1431ef (patch)
tree17603486c615095125bcff96a50643df1d374868 /test-linearize.c
parentAdd a few test-cases that Al Viro noted. (diff)
downloadsparse-9465af87f4da0a786ffbcdf35ac5f274be1431ef.tar.gz
sparse-9465af87f4da0a786ffbcdf35ac5f274be1431ef.tar.bz2
sparse-9465af87f4da0a786ffbcdf35ac5f274be1431ef.zip
Generalize linearize_symbol()
Allow it to be used by multiple callers.
Diffstat (limited to 'test-linearize.c')
-rw-r--r--test-linearize.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/test-linearize.c b/test-linearize.c
index 9d6d6ea..3b5459e 100644
--- a/test-linearize.c
+++ b/test-linearize.c
@@ -23,10 +23,13 @@
static void clean_up_symbol(struct symbol *sym, void *_parent, int flags)
{
+ struct entrypoint *ep;
+
check_duplicates(sym);
evaluate_symbol(sym);
expand_symbol(sym);
- linearize_symbol(sym);
+ ep = linearize_symbol(sym);
+ show_entry(ep);
}
int main(int argc, char **argv)