New test
authorMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 9 Sep 1999 22:41:05 +0000 (22:41 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 9 Sep 1999 22:41:05 +0000 (22:41 +0000)
From-SVN: r29247

gcc/testsuite/g++.old-deja/g++.pt/cond2.C [new file with mode: 0644]

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 (file)
index 0000000..b5cd961
--- /dev/null
@@ -0,0 +1,18 @@
+// Build don't link:
+// Origin: Mark Mitchell <mark@codesourcery.com>
+
+struct S
+{
+  S (int);
+  operator bool () const;
+};
+
+template <class T>
+void f ()
+{
+  if (const S &s = 3) {
+  }
+}
+
+template void f<int>();
+