[test] Correctly clang-format test inputs

This commit is contained in:
Adam Brouwers-Harries 2023-12-12 21:40:06 +00:00
parent 170e52b3c1
commit 98026cc3e4

View File

@ -1,20 +1,17 @@
#include "externalc.h"
int add(int x, int y) {
return x+y;
}
int add(int x, int y) { return x + y; }
int fastfibsum(int x) {
int acc = 0;
int p = 0;
int c = 1;
int tmp;
for (;0 <=-- x;)
{
acc += c;
tmp = c;
c = c + p;
p = tmp;
}
return acc;
int acc = 0;
int p = 0;
int c = 1;
int tmp;
for (; 0 <= --x;) {
acc += c;
tmp = c;
c = c + p;
p = tmp;
}
return acc;
}