Skip to content

Commit 9ae83de

Browse files
fix testcase
1 parent d8cc2b9 commit 9ae83de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/test/Analysis/PR121201.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ template <typename> struct formatter;
1010
template <typename Context> struct value {
1111
template <typename T> value(T) {
1212
using value_type = T;
13-
format_custom_arg<value_type,
13+
(void)format_custom_arg<value_type,
1414
typename Context::template formatter_type<value_type>>;
1515
}
1616

@@ -52,8 +52,8 @@ template <long N> struct formatter<bitset<N>> {
5252
bitset<N> bs;
5353

5454
template <typename OutputIt> void operator()(OutputIt) {
55-
for (auto pos = N; pos > 0; --pos)
56-
; // no-crash
55+
for (auto pos = N; pos > 0; --pos) // no-crash
56+
;
5757
}
5858
};
5959

0 commit comments

Comments
 (0)