diff options
author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-26 12:54:55 +0000 |
---|---|---|
committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-26 12:54:55 +0000 |
commit | 350f1a6f3375581ec58fb2ca462b0ec2f436250c (patch) | |
tree | 14c00f1c8d4db2b77deb207f31ffb5007574eb34 /gcc/testsuite/g++.dg/other | |
parent | 707699278c9eb45735854412512aaf9ddb0f0528 (diff) |
2004-04-26 Andrew Pinski <pinskia@physics.uc.edu>
PR c++/15119
* g++.dg/other/vararg-1.C: New test.
PR c++/4794
* g++.dg/eh/cleanup3.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81188 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg/other')
-rw-r--r-- | gcc/testsuite/g++.dg/other/vararg-1.C | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/other/vararg-1.C b/gcc/testsuite/g++.dg/other/vararg-1.C new file mode 100644 index 00000000000..f25606e932b --- /dev/null +++ b/gcc/testsuite/g++.dg/other/vararg-1.C @@ -0,0 +1,20 @@ +// C++/15119 +// This ICEd in substitute_placeholder_in_expr because it did not +// implement the 4 element trees. +// Orginal test by: <wanderer@rsu.ru> +// Reduced by: <bangerth@dealii.org> +/* { dg-do compile } */ + +template<typename T> +const T& xmin(const T& a, const T& b); + +void bar (char *, ...); + +char const* descs[4]; + +int main() { + int t = 1; + char buf[100]; + bar( buf, descs[ xmin(t-1,4) ], 0 ); + return 0; +} |