diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 7318ac37e4709..a14b002c37c63 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -11475,10 +11475,10 @@ TEST_F(FormatTest, UnderstandsNewAndDelete) { "void new (link p);\n" "void delete (link p);"); - verifyFormat("{ p->delete(); }\n" - "{ p->new(); }", - "{ p->delete (); }\n" - "{ p->new (); }"); + verifyFormat("p->new();\n" + "p->delete();", + "p->new ();\n" + "p->delete ();"); FormatStyle AfterPlacementOperator = getLLVMStyle(); AfterPlacementOperator.SpaceBeforeParens = FormatStyle::SBPO_Custom;