summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/t22.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/t22.C')
-rwxr-xr-xgcc/testsuite/g++.old-deja/g++.pt/t22.C10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/t22.C b/gcc/testsuite/g++.old-deja/g++.pt/t22.C
new file mode 100755
index 0000000..1102baa
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.pt/t22.C
@@ -0,0 +1,10 @@
+// Build don't link:
+
+class AA { public: static int xx; };
+template <class X> class A {
+ public:
+ static int x;
+};
+
+int AA::xx;
+template <class Y> int A<Y>::x; // gets bogus error