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

13 lines
122 B
C++
Raw Normal View History

#include "nscore.h"
#include "nsAutoPtr.h"
class NS_STACK_CLASS A
{
int i;
};
void Foo()
{
nsAutoPtr<A> a(new A);
}