diff options
author | Manuel Klimek <klimek@google.com> | 2013-01-23 10:09:28 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2013-01-23 10:09:28 +0000 |
commit | 092a2c7373c02d1653bea1feb1ada05363b02bc2 (patch) | |
tree | c0d5d66b2b470f485eba416f310f1e169e0c54ae /unittests/Format/FormatTest.cpp | |
parent | 8f4bd7a20f89d9065bebadd270e6bc7822257d37 (diff) |
Fix segfaults in the formatter.
Also: expletive deleted.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173247 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index c1c1696d9e..fb5221ee24 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -1679,11 +1679,16 @@ TEST_F(FormatTest, BlockComments) { "/* */someCall(parameter);", getLLVMStyleWithColumns(15))); } -TEST_F(FormatTest, Fuck) { +TEST_F(FormatTest, FormatStarDependingOnContext) { verifyFormat("void f(int *a);"); verifyFormat("void f() { f(fint * b); }"); } +TEST_F(FormatTest, SpecialTokensAtEndOfLine) { + verifyFormat("while"); + verifyFormat("operator"); +} + //===----------------------------------------------------------------------===// // Objective-C tests. //===----------------------------------------------------------------------===// |