summaryrefslogtreecommitdiff
path: root/source4/pidl/tests/header.pl
diff options
context:
space:
mode:
Diffstat (limited to 'source4/pidl/tests/header.pl')
-rwxr-xr-xsource4/pidl/tests/header.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/pidl/tests/header.pl b/source4/pidl/tests/header.pl
index bb09969d0f..331f4dd9fb 100755
--- a/source4/pidl/tests/header.pl
+++ b/source4/pidl/tests/header.pl
@@ -4,7 +4,7 @@
use strict;
use warnings;
-use Test::More tests => 14;
+use Test::More tests => 15;
use FindBin qw($RealBin);
use lib "$RealBin";
use Util;
@@ -48,3 +48,6 @@ like(parse_idl("interface p { struct x { }; };"),
like(parse_idl("interface p { struct x; };"),
qr/struct x;/sm, "struct declaration");
+
+like(parse_idl("interface p { typedef struct x { int p; } x; };"),
+ qr/struct x.*{.*int32_t p;.*};/sm, "double struct declaration");