Line | |
---|
1 | #!/usr/bin/perl
|
---|
2 | # (C) 2007 Jelmer Vernooij <jelmer@samba.org>
|
---|
3 | # Published under the GNU General Public License
|
---|
4 | use strict;
|
---|
5 |
|
---|
6 | use Test::More tests => 2;
|
---|
7 | use FindBin qw($RealBin);
|
---|
8 | use lib "$RealBin";
|
---|
9 | use Util;
|
---|
10 | use Parse::Pidl;
|
---|
11 | use Parse::Pidl::IDL;
|
---|
12 |
|
---|
13 | sub parse_idl($)
|
---|
14 | {
|
---|
15 | my $idl = shift;
|
---|
16 | my $pidl = Parse::Pidl::IDL::parse_string("interface echo { $idl }; ", "nofile");
|
---|
17 | Parse::Pidl::NDR::Parse($pidl);
|
---|
18 | }
|
---|
19 |
|
---|
20 | test_warnings("", sub {parse_idl("void x();"); });
|
---|
21 | test_warnings("nofile:0: top-level [out] pointer `x' is not a [ref] pointer\n", sub {parse_idl("void x([out,unique] int *x);"); });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.