From f00caf7903f1d9fff1d1f66560a353dd21e1c199 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Thu, 9 Sep 1999 22:41:05 +0000 Subject: [PATCH] New test From-SVN: r29247 --- gcc/testsuite/g++.old-deja/g++.pt/cond2.C | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.pt/cond2.C 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(); + -- 2.30.2