new
From-SVN: r23763
This commit is contained in:
parent
72a9314325
commit
693331300b
16
gcc/testsuite/g++.old-deja/g++.pt/memtemp80.C
Normal file
16
gcc/testsuite/g++.old-deja/g++.pt/memtemp80.C
Normal file
@ -0,0 +1,16 @@
|
||||
// Build don't link:
|
||||
|
||||
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>();
|
||||
}
|
Loading…
Reference in New Issue
Block a user