projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b8a84f
)
Formatter: Add test for default arguments.
author
Nico Weber
<nicolasweber@gmx.de>
Sat, 9 Feb 2013 18:02:07 +0000
(18:02 +0000)
committer
Nico Weber
<nicolasweber@gmx.de>
Sat, 9 Feb 2013 18:02:07 +0000
(18:02 +0000)
llvm-svn: 174816
clang/unittests/Format/FormatTest.cpp
patch
|
blob
|
history
diff --git
a/clang/unittests/Format/FormatTest.cpp
b/clang/unittests/Format/FormatTest.cpp
index
a8c327a
..
8d72df2
100644
(file)
--- a/
clang/unittests/Format/FormatTest.cpp
+++ b/
clang/unittests/Format/FormatTest.cpp
@@
-1687,6
+1687,8
@@
TEST_F(FormatTest, FormatsCasts) {
verifyFormat("void f(SmallVector<int>) {}");
verifyFormat("void f(SmallVector<int>);");
verifyFormat("void f(SmallVector<int>) = 0;");
+ verifyFormat("void f(int i = (kValue) * kMask) {}");
+ verifyFormat("void f(int i = (kA * kB) & kMask) {}");
}
TEST_F(FormatTest, FormatsFunctionTypes) {