summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/template28.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/template28.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.jason/template28.C34
1 files changed, 34 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/template28.C b/gcc/testsuite/g++.old-deja/g++.jason/template28.C
new file mode 100644
index 000000000..7359fa12d
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.jason/template28.C
@@ -0,0 +1,34 @@
+// { dg-do run }
+// PRMS Id: 7179
+
+template <class T>
+class Car{
+public:
+ Car();
+} ;
+
+class Wheels{
+public:
+ Wheels();
+} ;
+
+class Shop
+{
+public:
+ Shop();
+private:
+ Car<Wheels> car ;
+} ;
+
+Wheels::Wheels() {}
+
+Shop::Shop() {}
+
+int main()
+{
+ Shop shop ;
+ return 0 ;
+}
+
+template <class T>
+Car<T>::Car() {}