gecko/xpcom/tests/static-checker/TestStackTemplate.cpp

15 lines
123 B
C++

#include "nscore.h"
template<class T>
struct NS_STACK_CLASS A
{
A();
T i;
};
void *Foo()
{
return new A<int>();
}