diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/template8.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/template8.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/template8.C b/gcc/testsuite/g++.old-deja/g++.jason/template8.C new file mode 100644 index 000000000..07c46ed0a --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/template8.C @@ -0,0 +1,10 @@ +// { dg-do assemble } +// PRMS Id: 4827 + +class A; +template <class T> int f (const T&, const A *); + +int g (const int& a) +{ + return f (a, (A *)0); // { dg-bogus "" } failed unification +} |