gcc/testsuite/g++.old-deja/g++.pt/memtemp80.C
raw| 1 | // { dg-do assemble } |
| 2 | |
| 3 | template<typename T> T baz() { return 0; } |
| 4 | |
| 5 | struct foo { |
| 6 | template<typename T> static T staticbar() { return 0; } |
| 7 | template<typename T> T bar() { return 0; } |
| 8 | }; |
| 9 | |
| 10 | void f() |
| 11 | { |
| 12 | foo t; |
| 13 | int i = baz<int>(); |
| 14 | int j = foo::staticbar<int>(); |
| 15 | int k = t.bar<int>(); |
| 16 | } |