From 112a1457c05eac6b69395fa04d5d1fdca4a73702 Mon Sep 17 00:00:00 2001 From: Florian Ragwitz Date: Wed, 1 Sep 2010 16:54:38 +0200 Subject: Add test for deprecation warnings from h2ph This makes sure the fix for RT#74404 is working. --- t/lib/h2ph.h | 5 +++++ t/lib/h2ph.pht | 4 ++++ 2 files changed, 9 insertions(+) (limited to 't/lib') diff --git a/t/lib/h2ph.h b/t/lib/h2ph.h index 78429ca310..802639414b 100644 --- a/t/lib/h2ph.h +++ b/t/lib/h2ph.h @@ -132,6 +132,11 @@ enum flimflam { flam } flamflim; +static __inline__ int blli_in_use(struct atm_blli blli) +{ + return blli.l2_proto || blli.l3_proto; +} + /* Handle multi-line quoted strings: */ __asm__ __volatile__(" this diff --git a/t/lib/h2ph.pht b/t/lib/h2ph.pht index cda8d21051..f068d6dae4 100644 --- a/t/lib/h2ph.pht +++ b/t/lib/h2ph.pht @@ -90,6 +90,10 @@ unless(defined(&_H2PH_H_)) { } eval("sub flim () { 0; }") unless defined(&flim); eval("sub flam () { 1; }") unless defined(&flam); + eval 'sub blli_in_use { + my($blli) = @_; + eval q({ ($blli->{l2_proto}) || ($blli->{l3_proto}); }); + }' unless defined(&blli_in_use); eval 'sub multiline () {"multilinestring";}' unless defined(&multiline); } 1; -- cgit v1.2.1