diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-12-11 22:14:10 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-12-12 00:02:37 +0200 |
| commit | 4af4145d09d14bcf142714b3dd8c25ee00fcbe68 (patch) | |
| tree | a289c0d6b5960733bd16d9ecab41fbd9a391ceb2 /test cases/frameworks/5 protocol buffers/withpath/pathprog.cpp | |
| parent | 19cd60205db049a0aac274afad910281e9011ff7 (diff) | |
| download | meson-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.cpp | 16 |
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; +} |
