summaryrefslogtreecommitdiff
path: root/test cases/frameworks/5 protocol buffers/withpath/pathprog.cpp
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-01-13 19:00:38 +0200
committerGitHub <noreply@github.com>2018-01-13 19:00:38 +0200
commitd6bed2a77df7f7ff4512fd1be6333420d84b71b8 (patch)
treee5be5987b3903e3617973e9a29ded3f8f22c4f9f /test cases/frameworks/5 protocol buffers/withpath/pathprog.cpp
parent81100f0695c595f4c0020034284846cea7e8e6aa (diff)
parent27d4a611a54251dfab968e3cb111d8cbd6b88254 (diff)
downloadmeson-d6bed2a77df7f7ff4512fd1be6333420d84b71b8.tar.gz
Merge pull request #2764 from mesonbuild/generatorpath
Generator outputs can have path segments
Diffstat (limited to 'test cases/frameworks/5 protocol buffers/withpath/pathprog.cpp')
-rw-r--r--test cases/frameworks/5 protocol buffers/withpath/pathprog.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/test cases/frameworks/5 protocol buffers/withpath/pathprog.cpp b/test cases/frameworks/5 protocol buffers/withpath/pathprog.cpp
new file mode 100644
index 000000000..83af4b256
--- /dev/null
+++ b/test cases/frameworks/5 protocol buffers/withpath/pathprog.cpp
@@ -0,0 +1,16 @@
+#include"com/mesonbuild/simple.pb.h"
+#include"com/mesonbuild/subsite/complex.pb.h"
+
+#include<memory>
+
+int main(int argc, char **argv) {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+ {
+ subdirectorial::SimpleMessage *s = new subdirectorial::SimpleMessage();
+ s->set_the_integer(3);
+ subdirectorial::ComplexMessage c;
+ c.set_allocated_sm(s);
+ }
+ google::protobuf::ShutdownProtobufLibrary();
+ return 0;
+}