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

13 lines
107 B
C++

#include "nscore.h"
struct NS_STACK_CLASS A
{
int i;
};
void* Foo()
{
A *a = new A[8];
return a;
}