aboutsummaryrefslogtreecommitdiffhomepage
path: root/base_workspace/examples/cpp/hello-fail.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base_workspace/examples/cpp/hello-fail.cc')
-rw-r--r--base_workspace/examples/cpp/hello-fail.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/base_workspace/examples/cpp/hello-fail.cc b/base_workspace/examples/cpp/hello-fail.cc
new file mode 100644
index 0000000000..9b0b94ab63
--- /dev/null
+++ b/base_workspace/examples/cpp/hello-fail.cc
@@ -0,0 +1,11 @@
+#include "examples/cpp/hello-lib.h"
+
+int main(int argc, char** argv) {
+ const char* obj = "barf";
+ if (argc > 1) {
+ obj = argv[1];
+ }
+
+ greet(obj);
+ return 1;
+}