diff options
Diffstat (limited to 'test cases/unit')
-rw-r--r-- | test cases/unit/51 clang-format/.clang-format | 5 | ||||
-rw-r--r-- | test cases/unit/51 clang-format/meson.build | 4 | ||||
-rw-r--r-- | test cases/unit/51 clang-format/prog_expected_c | 6 | ||||
-rw-r--r-- | test cases/unit/51 clang-format/prog_orig_c | 21 |
4 files changed, 36 insertions, 0 deletions
diff --git a/test cases/unit/51 clang-format/.clang-format b/test cases/unit/51 clang-format/.clang-format new file mode 100644 index 000000000..5c60ac9f3 --- /dev/null +++ b/test cases/unit/51 clang-format/.clang-format @@ -0,0 +1,5 @@ +--- +BasedOnStyle: LLVM +IndentWidth: 4 +UseTab: Never +--- diff --git a/test cases/unit/51 clang-format/meson.build b/test cases/unit/51 clang-format/meson.build new file mode 100644 index 000000000..1b93cd54d --- /dev/null +++ b/test cases/unit/51 clang-format/meson.build @@ -0,0 +1,4 @@ +project('clangformat', 'c') + +executable('prog', 'prog.c') + diff --git a/test cases/unit/51 clang-format/prog_expected_c b/test cases/unit/51 clang-format/prog_expected_c new file mode 100644 index 000000000..a045966a7 --- /dev/null +++ b/test cases/unit/51 clang-format/prog_expected_c @@ -0,0 +1,6 @@ +#include <stdio.h> + +int main(int argc, char **argv) { + printf("Awful.\n"); + return 0; +} diff --git a/test cases/unit/51 clang-format/prog_orig_c b/test cases/unit/51 clang-format/prog_orig_c new file mode 100644 index 000000000..f098bbcce --- /dev/null +++ b/test cases/unit/51 clang-format/prog_orig_c @@ -0,0 +1,21 @@ +#include <stdio.h> + + + + +int +main( +int +argc, +char** +argv) +{ +printf( +"Awful.\n" +) +; +return +0 +; +} + |