diff options
| author | Mohsin Kaleem <mohkale@kisara.moe> | 2023-04-22 10:36:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-22 10:36:38 +0100 |
| commit | 0290ae18cce6a90d959a3fc228aa14973a26e7af (patch) | |
| tree | 337545ff3805e85d509d4ebc21a3a4d713dc29ce /test | |
| parent | bc6b72c05da5fa30919645592baa47501200d587 (diff) | |
Add astyle formatter (#169)
Diffstat (limited to 'test')
| -rw-r--r-- | test/formatters/installers/astyle.bash | 1 | ||||
| l--------- | test/formatters/samplecode/astyle/in.c | 1 | ||||
| -rw-r--r-- | test/formatters/samplecode/astyle/out.c | 5 |
3 files changed, 7 insertions, 0 deletions
diff --git a/test/formatters/installers/astyle.bash b/test/formatters/installers/astyle.bash new file mode 100644 index 0000000..2a9cde9 --- /dev/null +++ b/test/formatters/installers/astyle.bash @@ -0,0 +1 @@ +apt-get install -y astyle diff --git a/test/formatters/samplecode/astyle/in.c b/test/formatters/samplecode/astyle/in.c new file mode 120000 index 0000000..4e7891c --- /dev/null +++ b/test/formatters/samplecode/astyle/in.c @@ -0,0 +1 @@ +../clang-format/in.c
\ No newline at end of file diff --git a/test/formatters/samplecode/astyle/out.c b/test/formatters/samplecode/astyle/out.c new file mode 100644 index 0000000..bfc35f6 --- /dev/null +++ b/test/formatters/samplecode/astyle/out.c @@ -0,0 +1,5 @@ +// https://www.ioccc.org/2020/burton/prog.c +int main(int b,char**i) { + long long n=B,a=I^n,r=(a/b&a)>>4,y=atoi(*++i),_=(((a^n/b)*(y>>T)|y>>S)&r)|(a^r); + printf("%.8s\n",(char*)&_); +} |
