From 2e66901da2ffed2261784f458a2fc57d6f059725 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Tue, 17 Nov 2009 18:59:47 -0800 Subject: Test cross-CU type discovery Check that we can dereference a type declaration that is defined in a separate CU from the function. --- testsuite/systemtap.base/cu-decl-2.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 testsuite/systemtap.base/cu-decl-2.c (limited to 'testsuite/systemtap.base/cu-decl-2.c') diff --git a/testsuite/systemtap.base/cu-decl-2.c b/testsuite/systemtap.base/cu-decl-2.c new file mode 100644 index 00000000..46503251 --- /dev/null +++ b/testsuite/systemtap.base/cu-decl-2.c @@ -0,0 +1,10 @@ +struct foo { + int x, y; +}; + +struct foo* +get_foo() +{ + static struct foo f = { 6, 7 }; + return &f; +} -- cgit