gecko/xpcom/tests/static-checker/opmember.cpp
2009-02-24 10:11:06 -05:00

22 lines
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;
}