Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / abi / vague1.C
blob02feee9e2d4b5d8b3cb2fec858b0f672e4f22a31
1 // Test that we don't emit unneeded copies of static data member template
2 // instantiations.
4 // Disable debug info so we don't get confused by the symbol name there.
5 // { dg-options "-g0" }
7 template <class T> struct A {
8   static const T t = 0;
9 };
11 template <class T> const T A<T>::t;
13 int i;
14 int main ()
16   i = A<int>::t;                // Should just use the value