summaryrefslogtreecommitdiffstats
path: root/src/libs/xpcom18a4/xpcom/tests/TestXPIDLString.cpp
blob: f2802e1f6c8ef5889313a9195aff8d4067b1a2ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "nsString.h"
#include "nsReadableUtils.h"
#include "nsXPIDLString.h"

static void
nsXPIDLStringTest_Value(PRUnichar** aResult)
{
    *aResult = ToNewUnicode(NS_LITERAL_STRING("Hello, World"));
}

int
main(int argc, char* argv[])
{
    nsXPIDLString s1;
    nsXPIDLStringTest_Value(getter_Copies(s1));
    return 0;
}