summaryrefslogtreecommitdiffstats
path: root/pidl/tests/dump.pl
diff options
context:
space:
mode:
Diffstat (limited to 'pidl/tests/dump.pl')
-rwxr-xr-xpidl/tests/dump.pl15
1 files changed, 15 insertions, 0 deletions
diff --git a/pidl/tests/dump.pl b/pidl/tests/dump.pl
new file mode 100755
index 0000000..d1a56f0
--- /dev/null
+++ b/pidl/tests/dump.pl
@@ -0,0 +1,15 @@
+#!/usr/bin/perl
+# (C) 2007 Jelmer Vernooij <jelmer@samba.org>
+# Published under the GNU General Public License
+use strict;
+use warnings;
+
+use Test::More tests => 1;
+use FindBin qw($RealBin);
+use lib "$RealBin";
+use Util;
+use Parse::Pidl::Dump qw(DumpStruct);
+
+is (DumpStruct({ NAME => "foo", ELEMENTS => []}),
+ "struct foo {\n}");
+