diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-05-19 16:22:10 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-05-19 19:14:52 +0900 |
commit | 71fb4a139179e9d27070f7f3e98971e3e029697f (patch) | |
tree | 92fbf03f1e546b3c99e6e06e98100b6ef8e4e2c6 /debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/input/c/casts.c | |
parent | 6eae1a16a1001287ef5129db86f4ef2145ace3ca (diff) | |
download | extra-dependencies-71fb4a139179e9d27070f7f3e98971e3e029697f.tar.gz extra-dependencies-71fb4a139179e9d27070f7f3e98971e3e029697f.zip |
uncrustify: updated to version 0.73
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/input/c/casts.c')
-rw-r--r-- | debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/input/c/casts.c | 89 |
1 files changed, 0 insertions, 89 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/input/c/casts.c b/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/input/c/casts.c deleted file mode 100644 index f09f5c5e..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/input/c/casts.c +++ /dev/null @@ -1,89 +0,0 @@ - -#define SOME_VAL1 ((MYINT)-1) -#define SOME_VAL2 (-2) -#define SOME_VAL3 -3 -#define MULT(X,Y) (X) * (Y) -#define SOME_JUNK /*lint -e123 */(const mytype *)-1 - -typedef (*my_fcn_ptr_t)(char *, int); -typedef (my_fcn_t)(char *, int); - -void foo(void) -{ - uint crc = crc32_calc_full((const UINT8 *)"String", 6); - - crc = crc32_calc_full((const UINT8 *)&crc, sizeof(crc)); - - a = (b) - 4; - - a = (UINT) - 4; - a = (UINT) + 4; - a = (UINT) * 4; - a = (UINT) & 4; - - a = (uint32_t) - pb; - a = (uint32_t) + pb; - a = (uint32_t) * pb; - a = (uint32_t) & pb; - - a = (Uint) - 4; - a = (Uint) + 4; - a = (Uint) * 4; - a = (Uint) & 4; - - a = b * (int)flt; - a = b * ((int)flt); - - a = b * (int)flt; - a = b * (INT8)flt; - a = b * (Uint)flt; - - a = *(int)&b; - a = *(CHAR)&b; - a = *(Uint)&b; - - a = (int)*pb; - a = (CHAR)*pb; - a = (Uint)*pb; - - a = (int)'a'; - a = (UINT8)'a'; - a = (Uint)'a'; - - a = (int)*'a'; - a = (UINT8)*'a'; - a = (Uint)*'a'; - - a = (int)*5; - a = (UINT)*5; - a = (Uint)*5; - - a = (int)*ape; - a = (UINT)*ape; - a = (Uint)*ape; - - a = (int)ape; - a = (UINT)ape; - a = (Uint)ape; - - a = (int)sizeof(x); - a = (INT16)sizeof(x); - a = (Uint)sizeof(x); - - a = (int)foo(x); - a = (CHAR)foo(x); - a = (Uint)foo(x); - - a = (int)(x); - a = (CHAR)(x); - a = (Uint)(x); - - a = (int)*(x); - a = (CHAR)*(x); - a = (Uint)*(x); - - a = (unsigned int)(1 + 4); - a = (int)(1 + 1); - a = (void *)(&str); -} - |