commit | d08b27fa9701fecfdb69e1b0d1ac2459efc2129b | [log] [tgz] |
---|---|---|
author | Han-Wen Nienhuys <hanwen@google.com> | Wed Feb 25 16:45:20 2015 +0100 |
committer | Han-Wen Nienhuys <hanwen@google.com> | Wed Feb 25 16:45:20 2015 +0100 |
tree | 5d50963026239ca5aebfb47ea5b8db7e814e57c8 |
Update from Google. -- MOE_MIGRATED_REVID=85702957
diff --git a/base_workspace/examples/cpp/hello-world.cc b/base_workspace/examples/cpp/hello-world.cc new file mode 100644 index 0000000..305b17f --- /dev/null +++ b/base_workspace/examples/cpp/hello-world.cc
@@ -0,0 +1,11 @@ +#include "examples/cpp/hello-lib.h" + +int main(int argc, char** argv) { + const char* obj = "world"; + if (argc > 1) { + obj = argv[1]; + } + + greet(obj); + return 0; +}