aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/static5.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/static5.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/static5.C9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/static5.C b/gcc/testsuite/g++.old-deja/g++.pt/static5.C
new file mode 100644
index 00000000000..f6e125dbfb7
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.pt/static5.C
@@ -0,0 +1,9 @@
+// Build don't link:
+
+template <class T>
+struct S
+{
+ static const T t = 3; // ERROR - initializing non-integral type
+};
+
+double d = S<double>::t;