4 if ($ENV{PERL_CORE_MINITEST}) {
5 print "1..0 # skip: miniperl can't load attributes\n";
15 # test for bug #38475: parsing errors with multiline attributes
19 use Attribute::Handlers;
21 sub TypeCheck :ATTR(CODE,RAWDATA) {
25 sub WrongAttr :ATTR(CODE,RAWDATA) {
29 sub CheckData :ATTR(RAWDATA) {
30 # check that the $data element contains the given attribute parameters.
32 if ($_[4] eq "12, 14") {
40 sub CheckEmptyValue :ATTR() {
41 if (not defined $_[4]) {
52 sub something : TypeCheck(
56 ) { # WrongAttr (perl tokenizer bug)
57 # keep this ^ lined up !
63 sub c :CheckData(12, 14) {};
65 sub d1 :CheckEmptyValue() {};
66 sub d2 :CheckEmptyValue {};