Skip to content

Commit 31aa0f7

Browse files
committed
Change printf to assert
1 parent 8dcd152 commit 31aa0f7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/unit/implicit_autoref.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <cstdio>
1+
#include <cassert>
22

33
struct Counter {
44
int value = 0;
@@ -31,6 +31,6 @@ int main() {
3131
via_ref(c);
3232

3333
int sum = (*p).get() + h.c.get() + h.ref.get() + arr[0].get() + arr[1].get();
34-
printf("%d\n", sum);
34+
assert(sum == 11);
3535
return 0;
3636
}

0 commit comments

Comments
 (0)