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 | d33516ef32d258945fd5ec8bb4c3205e1adeb252 (patch) | |
tree | 6f17569a432df1f53013787f5a92b569292d8120 /clang/unittests/Format/FormatTest.cpp | |
parent | e941b169db764cedea0e105a2d7e2e8f0a966e16 (diff) | |
download | bcm5719-llvm-d33516ef32d258945fd5ec8bb4c3205e1adeb252.tar.gz bcm5719-llvm-d33516ef32d258945fd5ec8bb4c3205e1adeb252.zip |
Fix segfaults in the formatter.
Also: expletive deleted.
llvm-svn: 173247
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index c1c1696d9e1..fb5221ee246 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/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. //===----------------------------------------------------------------------===// |