diff options
Diffstat (limited to 'clang/unittests/Format/FormatTestProto.cpp')
| -rw-r--r-- | clang/unittests/Format/FormatTestProto.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestProto.cpp b/clang/unittests/Format/FormatTestProto.cpp index 0a4416ec268..55bf230cf99 100644 --- a/clang/unittests/Format/FormatTestProto.cpp +++ b/clang/unittests/Format/FormatTestProto.cpp @@ -92,5 +92,13 @@ TEST_F(FormatTestProto, FormatsOptions) { verifyFormat("option (my_custom_option) = \"abc\";"); } +TEST_F(FormatTestProto, FormatsService) { + verifyFormat("service SearchService {\n" + " rpc Search(SearchRequest) returns (SearchResponse) {\n" + " option foo = true;\n" + " }\n" + "};"); +} + } // end namespace tooling } // end namespace clang |

