diff options
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index c8416cb352..d00da7ffee 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -277,6 +277,8 @@ TEST_F(FormatTest, UnderstandsAccessSpecifiers) { TEST_F(FormatTest, FormatsDerivedClass) { verifyFormat("class A : public B {\n" "};"); + verifyFormat("class A : public ::B {\n" + "};"); } TEST_F(FormatTest, FormatsEnum) { @@ -474,6 +476,9 @@ TEST_F(FormatTest, UnderstandsUsesOfStar) { verifyFormat("int a = *b;"); verifyFormat("int a = *b * c;"); verifyFormat("int a = b * *c;"); + verifyFormat("int main(int argc, char **argv) {\n}"); + + verifyGoogleFormat("int main(int argc, char** argv) {\n}"); } TEST_F(FormatTest, LineStartsWithSpecialCharacter) { |