aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/x86/trivial_64bit_program.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/x86/trivial_64bit_program.c')
-rw-r--r--tools/testing/selftests/x86/trivial_64bit_program.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/testing/selftests/x86/trivial_64bit_program.c b/tools/testing/selftests/x86/trivial_64bit_program.c
new file mode 100644
index 000000000000..b994946c40fb
--- /dev/null
+++ b/tools/testing/selftests/x86/trivial_64bit_program.c
@@ -0,0 +1,18 @@
1/*
2 * Trivial program to check that we have a valid 32-bit build environment.
3 * Copyright (c) 2015 Andy Lutomirski
4 * GPL v2
5 */
6
7#ifndef __x86_64__
8# error wrong architecture
9#endif
10
11#include <stdio.h>
12
13int main()
14{
15 printf("\n");
16
17 return 0;
18}