diff options
Diffstat (limited to 't')
-rw-r--r-- | t/lib/h2ph.h | 7 | ||||
-rw-r--r-- | t/lib/h2ph.pht | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/t/lib/h2ph.h b/t/lib/h2ph.h index f12a6776cb..c60e8f008d 100644 --- a/t/lib/h2ph.h +++ b/t/lib/h2ph.h @@ -98,6 +98,13 @@ typedef enum _days_of_week { sun, mon, tue, wed, thu, fri, sat, Sun=0, Mon, ??= define SOMETHING_ELSE_TRIGRAPHIC_8 "??>" /* | ??>| }| */ ??=endif +// test C++-style comment + +#if 1 +typdef struct empty_struct { +} // trailing C++-style comment should not force continuation +#endif + /* comments (that look like string) inside enums... */ enum { diff --git a/t/lib/h2ph.pht b/t/lib/h2ph.pht index 235332d595..a52c1605f0 100644 --- a/t/lib/h2ph.pht +++ b/t/lib/h2ph.pht @@ -79,6 +79,8 @@ 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); } + if(1) { + } eval("sub flim () { 0; }") unless defined(&flim); eval("sub flam () { 1; }") unless defined(&flam); } |