VIXL Release 1.6
Refer to the README.md and LICENCE files for details.
diff --git a/examples/sum-array.cc b/examples/sum-array.cc
index f503136..bf4fdd0 100644
--- a/examples/sum-array.cc
+++ b/examples/sum-array.cc
@@ -59,6 +59,7 @@
#ifndef TEST_EXAMPLES
+#ifdef USE_SIMULATOR
int main(void) {
// Create and initialize the assembler and the simulator.
byte assm_buf[BUF_SIZE];
@@ -87,4 +88,8 @@
return 0;
}
-#endif
+#else
+// Without the simulator there is nothing to test.
+int main(void) { return 0; }
+#endif // USE_SIMULATOR
+#endif // TEST_EXAMPLES