diff options
Diffstat (limited to 'clang/unittests')
| -rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 75eea982753..96274fc2031 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -4682,6 +4682,11 @@ TEST_F(FormatTest, UnderstandsOverloadedOperators) { verifyFormat("Deleted &operator=(const Deleted &)&& = delete;"); verifyGoogleFormat("Deleted& operator=(const Deleted&)& = default;"); verifyGoogleFormat("Deleted& operator=(const Deleted&)&& = delete;"); + + verifyFormat("string // break\n" + "operator()() & {}"); + verifyFormat("string // break\n" + "operator()() && {}"); } TEST_F(FormatTest, UnderstandsNewAndDelete) { |

