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

13 lines
122 B
C++

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