pjs/xpcom/tests/static-checker/opmember.cpp

22 строки
292 B
C++

/**
* Make sure treehydra/outparams don't choke on pointer-to-members.
*/
typedef int PRUint32;
typedef PRUint32 nsresult;
class A
{
int i;
int j;
};
nsresult
TestMethod(int A::* member,
__attribute__((user("outparam"))) int *out) {
*out = 1;
return 0;
}