diff options
author | Manuel Klimek <klimek@google.com> | 2013-01-21 14:16:56 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2013-01-21 14:16:56 +0000 |
commit | d5e782b010927328d1acde9940552c3f2dbff3e4 (patch) | |
tree | b0ccc0c1d788e9a3d3ddfe337d31da13e312fdd2 /clang/unittests/Format/FormatTest.cpp | |
parent | 7b9a9201bf9aaed5326da73848b6ec710d1c342b (diff) | |
download | bcm5719-llvm-d5e782b010927328d1acde9940552c3f2dbff3e4.tar.gz bcm5719-llvm-d5e782b010927328d1acde9940552c3f2dbff3e4.zip |
Add regression test.
llvm-svn: 173042
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 4725889247e..f8c454b7bc6 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -1573,6 +1573,13 @@ TEST_F(FormatTest, MergeHandlingInTheFaceOfPreprocessorDirectives) { " f(); \\\n" " if (true)\n" "g();", ShortMergedIf); + verifyFormat("{\n" + "#ifdef A\n" + " // Comment\n" + " if (true) continue;\n" + "#endif\n" + " // Comment\n" + " if (true) continue;", ShortMergedIf); } //===----------------------------------------------------------------------===// |