aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/static3.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/static3.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/static3.C6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/static3.C b/gcc/testsuite/g++.old-deja/g++.pt/static3.C
index b3040acb0f5..724355e4257 100644
--- a/gcc/testsuite/g++.old-deja/g++.pt/static3.C
+++ b/gcc/testsuite/g++.old-deja/g++.pt/static3.C
@@ -1,3 +1,7 @@
+// On targets that don't support weak symbols, we require an explicit
+// instantiation of arr.
+// excess errors test - XFAIL *-*-aout *-*-coff
+
template<class T>
struct A {
static T arr[5];
@@ -6,7 +10,7 @@ struct A {
template <class T>
T A<T>::arr[5] = { 0, 1, 2, 3, 4 };
-main ()
+int main ()
{
return A<int>::arr[0];
}