summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/cu-decl-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.base/cu-decl-1.c')
-rw-r--r--testsuite/systemtap.base/cu-decl-1.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/systemtap.base/cu-decl-1.c b/testsuite/systemtap.base/cu-decl-1.c
new file mode 100644
index 00000000..9743d298
--- /dev/null
+++ b/testsuite/systemtap.base/cu-decl-1.c
@@ -0,0 +1,17 @@
+#include <stdio.h>
+
+struct foo;
+struct foo* get_foo(void);
+
+void
+print(struct foo* f)
+{
+ printf("%p\n", f);
+}
+
+int
+main()
+{
+ print(get_foo());
+ return 0;
+}