From: Mark Mitchell Date: Thu, 9 Sep 1999 22:41:05 +0000 (+0000) Subject: New test X-Git-Tag: prereleases/libstdc++-2.92~10703 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f00caf7903f1d9fff1d1f66560a353dd21e1c199;p=thirdparty%2Fgcc.git New test From-SVN: r29247 --- diff --git a/gcc/testsuite/g++.old-deja/g++.pt/cond2.C b/gcc/testsuite/g++.old-deja/g++.pt/cond2.C new file mode 100644 index 000000000000..b5cd96161f1e --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/cond2.C @@ -0,0 +1,18 @@ +// Build don't link: +// Origin: Mark Mitchell + +struct S +{ + S (int); + operator bool () const; +}; + +template +void f () +{ + if (const S &s = 3) { + } +} + +template void f(); +