From: Mark Mitchell Date: Thu, 9 Sep 1999 22:41:05 +0000 (+0000) Subject: New test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f00caf7903f1d9fff1d1f66560a353dd21e1c199;p=gcc.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 00000000000..b5cd96161f1 --- /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(); +