diff options
author | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-09-09 22:41:05 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-09-09 22:41:05 +0000 |
commit | f00caf7903f1d9fff1d1f66560a353dd21e1c199 (patch) | |
tree | 8ffe8bbd1f86b0d10012af5ccc558c3c283054b2 /gcc | |
parent | 527f0080b0407487c0ed478b63989e443b112144 (diff) | |
download | gcc-f00caf7903f1d9fff1d1f66560a353dd21e1c199.zip gcc-f00caf7903f1d9fff1d1f66560a353dd21e1c199.tar.gz gcc-f00caf7903f1d9fff1d1f66560a353dd21e1c199.tar.bz2 |
New test
From-SVN: r29247
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/cond2.C | 18 |
1 files changed, 18 insertions, 0 deletions
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 0000000..b5cd961 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/cond2.C @@ -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>(); + |