diff options
author | E. Choroba <choroba@cpan.org> | 2022-07-04 14:14:19 +0000 |
---|---|---|
committer | James E Keenan <jkeenan@cpan.org> | 2022-11-06 07:05:20 -0500 |
commit | fd54965300ba43b0021845e3b903b02e21ff1a38 (patch) | |
tree | c4d7657d3ec6cd4963fe35556cd8427a9d4c53b1 | |
parent | b65a15b678acb393729f0f74c0bfd167f5dac941 (diff) | |
download | perl-fd54965300ba43b0021845e3b903b02e21ff1a38.tar.gz |
Add test file contributed in GH 19661
-rw-r--r-- | MANIFEST | 1 | ||||
-rw-r--r-- | dist/ExtUtils-ParseXS/t/XSFalsePositive.xs | 23 |
2 files changed, 24 insertions, 0 deletions
@@ -3704,6 +3704,7 @@ dist/ExtUtils-ParseXS/t/lib/TypemapTest/Foo.pm ExtUtils::Typemaps tests dist/ExtUtils-ParseXS/t/pseudotypemap1 A test-typemap dist/ExtUtils-ParseXS/t/typemap Standard typemap for controlled testing dist/ExtUtils-ParseXS/t/XSBroken.xs Test file for ExtUtils::ParseXS tests +dist/ExtUtils-ParseXS/t/XSFalsePositive.xs Test file for ExtUtils::ParseXS tests dist/ExtUtils-ParseXS/t/XSInclude.xsh Test file for ExtUtils::ParseXS tests dist/ExtUtils-ParseXS/t/XSMore.xs Test file for ExtUtils::ParseXS tests dist/ExtUtils-ParseXS/t/XSTest.pm Test file for ExtUtils::ParseXS tests diff --git a/dist/ExtUtils-ParseXS/t/XSFalsePositive.xs b/dist/ExtUtils-ParseXS/t/XSFalsePositive.xs new file mode 100644 index 0000000000..87a9330ab0 --- /dev/null +++ b/dist/ExtUtils-ParseXS/t/XSFalsePositive.xs @@ -0,0 +1,23 @@ +MODULE = My PACKAGE = My + +#ifdef MYDEF123 + +void +do(dbh) + SV *dbh +CODE: +{ + int x; + ++x; +} + +#endif + +void +do(dbh) + SV *dbh +CODE: +{ + int x; + ++x; +} |