summaryrefslogtreecommitdiffstats
path: root/config.tests/unix/ptrsize/ptrsizetest.cpp
blob: 9e15e81fa6848410b6a2ca423b0135249b77fb78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* Sample program for configure to test pointer size on target
platforms.
*/

template<int>
struct QPointerSizeTest
{
};

template<>
struct QPointerSizeTest<8>
{
    enum { PointerSize = 8 };
};

int main( int, char ** )
{
    return QPointerSizeTest<sizeof(void*)>::PointerSize;
}