diff options
Diffstat (limited to 'clang-tools-extra/unittests/clang-tidy/GoogleModuleTest.cpp')
-rw-r--r-- | clang-tools-extra/unittests/clang-tidy/GoogleModuleTest.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang-tools-extra/unittests/clang-tidy/GoogleModuleTest.cpp b/clang-tools-extra/unittests/clang-tidy/GoogleModuleTest.cpp index 4d340433316..48433f4fbd8 100644 --- a/clang-tools-extra/unittests/clang-tidy/GoogleModuleTest.cpp +++ b/clang-tools-extra/unittests/clang-tidy/GoogleModuleTest.cpp @@ -21,5 +21,10 @@ TEST_F(ExplicitConstructorCheckTest, DefaultParameters) { runCheckOn("class C { C(int i, int j = 0); };")); } +TEST_F(ExplicitConstructorCheckTest, OutOfLineDefinitions) { + EXPECT_EQ("class C { explicit C(int i); }; C::C(int i) {}", + runCheckOn("class C { C(int i); }; C::C(int i) {}")); +} + } // namespace tidy } // namespace clang |