summaryrefslogtreecommitdiff
path: root/gcc_arm/testsuite/g++.old-deja/g++.pt/t14a.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.pt/t14a.C')
-rwxr-xr-xgcc_arm/testsuite/g++.old-deja/g++.pt/t14a.C25
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.pt/t14a.C b/gcc_arm/testsuite/g++.old-deja/g++.pt/t14a.C
new file mode 100755
index 0000000..694f846
--- /dev/null
+++ b/gcc_arm/testsuite/g++.old-deja/g++.pt/t14a.C
@@ -0,0 +1,25 @@
+// Build don't link:
+
+class OBJECT
+{
+ int a;
+};
+
+
+
+template <class T> class TESTA
+{
+public:
+ TESTA();
+ T foo(int i) {T t = 0; return t;}
+};
+
+
+
+void foo()
+{
+ TESTA<OBJECT *> *foo;
+
+ foo = new TESTA<OBJECT *>;
+}
+