// many_sections_test.cc -- test lots of sections for gold
-// Copyright 2008 Free Software Foundation, Inc.
+// Copyright (C) 2008-2014 Free Software Foundation, Inc.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
#include "many_sections_define.h"
+// This tests a section group.
+template<typename T>
+class C
+{
+ public:
+ static T val() { return C::val_; }
+ private:
+ static T val_;
+};
+
+template<typename T>
+T C<T>::val_;
+
int
main(int, char**)
{
#include "many_sections_check.h"
+ assert(C<int>::val() == 0);
return 0;
}