summaryrefslogtreecommitdiff
path: root/gcc_arm/testsuite/g++.old-deja/g++.pt/partial1.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.pt/partial1.C')
-rwxr-xr-xgcc_arm/testsuite/g++.old-deja/g++.pt/partial1.C26
1 files changed, 26 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.pt/partial1.C b/gcc_arm/testsuite/g++.old-deja/g++.pt/partial1.C
new file mode 100755
index 0000000..7a92996
--- /dev/null
+++ b/gcc_arm/testsuite/g++.old-deja/g++.pt/partial1.C
@@ -0,0 +1,26 @@
+template<class T_type, int N>
+class foo {
+public:
+ enum bar { z = 0 };
+};
+
+template<int N>
+class foo<double, N> {
+public:
+ enum bar { z = 1 };
+};
+
+template<class T_type>
+class foo<T_type, 2> {
+public:
+ enum bar { z = 2 };
+};
+
+int main()
+{
+ if ((foo<int,3>::z == 0) && (foo<double,3>::z == 1)
+ && (foo<float,2>::z == 2))
+ return 0;
+ else
+ return 1;
+}