summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/const1.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/const1.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/const1.C4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/const1.C b/gcc/testsuite/g++.old-deja/g++.pt/const1.C
new file mode 100644
index 000000000..6c6182284
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.pt/const1.C
@@ -0,0 +1,4 @@
+// { dg-do assemble }
+template <class T> struct B { static const int i = 3; };
+template <class T> struct A { static const int i = B<T>::i; };
+enum { i = A<int>::i };