diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.oliva/template3.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.oliva/template3.C | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.oliva/template3.C b/gcc/testsuite/g++.old-deja/g++.oliva/template3.C new file mode 100644 index 000000000..056f77c61 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.oliva/template3.C @@ -0,0 +1,9 @@ +// { dg-do assemble } + +// Copyright (C) 1999 Free Software Foundation + +// by Alexandre Oliva <oliva@dcc.unicamp.br> +// based on bug report by Ulf Larsson <ulf.larsson@mbow337.swipnet.se> + +template <class T> class C {}; +class foo {} bar = bar.C(); // { dg-error "" } call to template |