summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/opt/static2.C
blob: e2ecd13c57277a3d19c5d83797a67a85b79d111d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Origin: reichelt@igpm.rwth-aachen.de
// PR 5571
// { dg-options "-O2" }

template <class T> struct A {};

struct B
{
    static A<int> a;
    void f() { a; }
};

A<int> B::a = A<int>();