summaryrefslogtreecommitdiff
path: root/t/lib
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-11-28 13:37:31 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-11-28 13:37:31 +0000
commitd4386644f0ff20302112b8bd21b242a926cda588 (patch)
tree9bcc0a42c160d61da0e18f708d03864499aeef14 /t/lib
parent4e15175a644dc94dffd2be1324573f20050a9a0f (diff)
downloadperl-d4386644f0ff20302112b8bd21b242a926cda588.tar.gz
Test cases for the first half of #13338.
p4raw-id: //depot/perl@13339
Diffstat (limited to 't/lib')
-rw-r--r--t/lib/h2ph.h16
-rw-r--r--t/lib/h2ph.pht2
2 files changed, 18 insertions, 0 deletions
diff --git a/t/lib/h2ph.h b/t/lib/h2ph.h
index 9fd535d34e..f12a6776cb 100644
--- a/t/lib/h2ph.h
+++ b/t/lib/h2ph.h
@@ -98,4 +98,20 @@ typedef enum _days_of_week { sun, mon, tue, wed, thu, fri, sat, Sun=0, Mon,
??= define SOMETHING_ELSE_TRIGRAPHIC_8 "??>" /* | ??>| }| */
??=endif
+/* comments (that look like string) inside enums... */
+
+enum {
+ /* foo;
+ can't
+ */
+ };
+
+enum flimflam {
+ flim,
+ /* foo;
+ can't
+ */
+ flam
+ } flamflim;
+
#endif /* _H2PH_H_ */
diff --git a/t/lib/h2ph.pht b/t/lib/h2ph.pht
index 07b9470e70..235332d595 100644
--- a/t/lib/h2ph.pht
+++ b/t/lib/h2ph.pht
@@ -79,5 +79,7 @@ unless(defined(&_H2PH_H_)) {
eval 'sub SOMETHING_ELSE_TRIGRAPHIC_7 () {"#";}' unless defined(&SOMETHING_ELSE_TRIGRAPHIC_7);
eval 'sub SOMETHING_ELSE_TRIGRAPHIC_8 () {"}";}' unless defined(&SOMETHING_ELSE_TRIGRAPHIC_8);
}
+ eval("sub flim () { 0; }") unless defined(&flim);
+ eval("sub flam () { 1; }") unless defined(&flam);
}
1;