s3: smbd: Update widelinks_warning() to cope with SMB1 and SMB2 unix extensions.
[Samba.git] / pidl / tests / ndr_compat.pl
blob06f7efb40009c87d1f536a9d3ee50dd7b09d5fe1
1 #!/usr/bin/perl
2 # (C) 2007 Jelmer Vernooij <jelmer@samba.org>
3 # Published under the GNU General Public License
4 use strict;
5 use warnings;
7 use Test::More tests => 2;
8 use FindBin qw($RealBin);
9 use lib "$RealBin";
10 use Util;
11 use Parse::Pidl;
12 use Parse::Pidl::IDL;
14 sub parse_idl($)
16 my $idl = shift;
17 my $pidl = Parse::Pidl::IDL::parse_string("interface echo { $idl }; ", "nofile");
18 Parse::Pidl::NDR::Parse($pidl);
21 test_warnings("", sub {parse_idl("void x();"); });
22 test_warnings("nofile:0: top-level [out] pointer `x' is not a [ref] pointer\n", sub {parse_idl("void x([out,unique] int *x);"); });