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

16 lines
191 B
C++

#include "nscore.h"
struct NS_STACK_CLASS A
{
// BUG: currently classes which are marked NS_STACK_CLASS must have a
// constructor
A();
int i;
};
void* Foo()
{
return new A();
}