summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp80.C
blob: 878a3dfa02f748b4906c2a2f437411ab17c8d4da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do assemble  }

template<typename T> T baz() { return 0; }

struct foo {
       template<typename T> static T staticbar() { return 0; }
       template<typename T> T bar() { return 0; }
};

void f()
{
       foo t;
       int i = baz<int>();
       int j = foo::staticbar<int>();
       int k = t.bar<int>();
}