summaryrefslogtreecommitdiffstats
path: root/config.tests/unix/ptrsize
diff options
context:
space:
mode:
Diffstat (limited to 'config.tests/unix/ptrsize')
-rw-r--r--config.tests/unix/ptrsize/ptrsizetest.cpp9
-rw-r--r--config.tests/unix/ptrsize/ptrsizetest.pro5
2 files changed, 14 insertions, 0 deletions
diff --git a/config.tests/unix/ptrsize/ptrsizetest.cpp b/config.tests/unix/ptrsize/ptrsizetest.cpp
new file mode 100644
index 000000000..f2de94337
--- /dev/null
+++ b/config.tests/unix/ptrsize/ptrsizetest.cpp
@@ -0,0 +1,9 @@
+/* Sample program for configure to test pointer size on target
+platforms.
+*/
+
+int main( int, char ** )
+{
+ return sizeof(void *);
+}
+
diff --git a/config.tests/unix/ptrsize/ptrsizetest.pro b/config.tests/unix/ptrsize/ptrsizetest.pro
new file mode 100644
index 000000000..dfff44f21
--- /dev/null
+++ b/config.tests/unix/ptrsize/ptrsizetest.pro
@@ -0,0 +1,5 @@
+TARGET=ptrsizetest
+CONFIG-=qt opengl x11sm dylib
+CONFIG+=console
+TEMPLATE=app
+SOURCES=ptrsizetest.cpp