11 # test for bug #38475: parsing errors with multiline attributes
15 use Attribute::Handlers;
17 sub TypeCheck :ATTR(CODE,RAWDATA) {
21 sub WrongAttr :ATTR(CODE,RAWDATA) {
25 sub CheckData :ATTR(RAWDATA) {
26 # check that the $data element contains the given attribute parameters.
28 if ($_[4] eq "12, 14") {
36 sub CheckEmptyValue :ATTR() {
37 if (not defined $_[4]) {
48 sub something : TypeCheck(
52 ) { # WrongAttr (perl tokenizer bug)
53 # keep this ^ lined up !
59 sub c :CheckData(12, 14) {};
61 sub d1 :CheckEmptyValue() {};
62 sub d2 :CheckEmptyValue {};