aboutsummaryrefslogtreecommitdiff
path: root/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-01-14 15:52:06 +0000
committerDaniel Jasper <djasper@google.com>2013-01-14 15:52:06 +0000
commit2b9c10bd8f80c004756308a5163fa7eda27eb5ce (patch)
tree2249d69db98e8fdfb5d72caf6f7192e40531b2fc /unittests/Format/FormatTest.cpp
parente0b15ea7edeceb41decddfeabaf6fac935ed7baf (diff)
Fix bug that would lead to joining preprocessor directives.
Before: #include "a.h" #include "b.h" After: #include "a.h" #include "b.h" git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172424 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r--unittests/Format/FormatTest.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp
index c088089211..daebc4ddab 100644
--- a/unittests/Format/FormatTest.cpp
+++ b/unittests/Format/FormatTest.cpp
@@ -1133,12 +1133,12 @@ TEST_F(FormatTest, LineStartsWithSpecialCharacter) {
}
TEST_F(FormatTest, HandlesIncludeDirectives) {
- verifyFormat("#include <string>");
- verifyFormat("#include <a/b/c.h>");
- verifyFormat("#include \"a/b/string\"");
- verifyFormat("#include \"string.h\"");
- verifyFormat("#include \"string.h\"");
- verifyFormat("#include <a-a>");
+ verifyFormat("#include <string>\n"
+ "#include <a/b/c.h>\n"
+ "#include \"a/b/string\"\n"
+ "#include \"string.h\"\n"
+ "#include \"string.h\"\n"
+ "#include <a-a>");
verifyFormat("#import <string>");
verifyFormat("#import <a/b/c.h>");