mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-09-11 13:36:08 +03:00
[test] Correctly clang-format test inputs
This commit is contained in:
parent
170e52b3c1
commit
98026cc3e4
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user