diff options
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.jason/cast2.C')
-rwxr-xr-x | gcc_arm/testsuite/g++.old-deja/g++.jason/cast2.C | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.jason/cast2.C b/gcc_arm/testsuite/g++.old-deja/g++.jason/cast2.C new file mode 100755 index 0000000..02495b3 --- /dev/null +++ b/gcc_arm/testsuite/g++.old-deja/g++.jason/cast2.C @@ -0,0 +1,15 @@ +// Build don't link: +// 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); +} |