diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/cast2.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/cast2.C | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/cast2.C b/gcc/testsuite/g++.old-deja/g++.jason/cast2.C new file mode 100644 index 000000000..bd0fe7923 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/cast2.C @@ -0,0 +1,15 @@ +// { dg-do assemble } +// The compiler tried to build up a double with a NOP_EXPR from +// integer_zero_node, which fails. + +template <class T> +class vector { +public: + vector (int n, const T& value = T()) {} +}; + +void +foo (void) +{ + vector<double> v (10); +} |