summaryrefslogtreecommitdiff
path: root/test cases/frameworks/5 protocol buffers/withpath/pathprog.cpp
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-12-11 22:14:10 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2017-12-12 00:02:37 +0200
commit4af4145d09d14bcf142714b3dd8c25ee00fcbe68 (patch)
treea289c0d6b5960733bd16d9ecab41fbd9a391ceb2 /test cases/frameworks/5 protocol buffers/withpath/pathprog.cpp
parent19cd60205db049a0aac274afad910281e9011ff7 (diff)
downloadmeson-4af4145d09d14bcf142714b3dd8c25ee00fcbe68.tar.gz
Files created with generator can have path segments.
This is OK, because they are written in the private directory of each target and its layout can be anything.
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;
+}