From: Nico Weber Date: Sat, 9 Feb 2013 18:02:07 +0000 (+0000) Subject: Formatter: Add test for default arguments. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06fcec1cf9df4181df7c0454f7b7a9ea8601fb94;p=platform%2Fupstream%2Fllvm.git Formatter: Add test for default arguments. llvm-svn: 174816 --- diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index a8c327a..8d72df2 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -1687,6 +1687,8 @@ TEST_F(FormatTest, FormatsCasts) { verifyFormat("void f(SmallVector) {}"); verifyFormat("void f(SmallVector);"); verifyFormat("void f(SmallVector) = 0;"); + verifyFormat("void f(int i = (kValue) * kMask) {}"); + verifyFormat("void f(int i = (kA * kB) & kMask) {}"); } TEST_F(FormatTest, FormatsFunctionTypes) {