diff options
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_asterisk_after_type_cast.cpp')
-rw-r--r-- | debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_asterisk_after_type_cast.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_asterisk_after_type_cast.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_asterisk_after_type_cast.cpp new file mode 100644 index 00000000..4b325b1e --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/align_asterisk_after_type_cast.cpp @@ -0,0 +1,30 @@ +#define MEM_ASSERT1(x) if (!(x)) * (volatile int *)0 = 1 +#define MEM_ASSERT2(x) if (!(x))*(volatile int*)0 = 1 +#define MEM_ASSERT3(x) if (!(x)) * (volatile int *)0 = 1; +#define MEM_ASSERT4(x) if (!(x))*(volatile int*)0 = 1; +#define MEM_ASSERT5(x) if (!(x)) { * (volatile int *)0 = 1; } +#define MEM_ASSERT6(x) if (!(x)) { *(volatile int*)0 = 1; } + +#define FOO1(x) while (!(x)) { * (volatile int*)0 = 1; } +#define FOO2(x) while (!(x)) * (volatile int*)0 = 1; +#define FOO3(x) { * (volatile int*)0 = 1; } +#define FOO4(x) * (volatile int*)0 = 1; +#define FOO5(x) for(;;) (!(x)) { * (volatile int*)0 = 1; } +#define FOO6(x) for(;;) (!(x)) * (volatile int*)0 = 1; +#define FOO7(x) do { * (volatile int*)0 = 1; } while (false); + +void foo1(int x) { + if (!(x)) * (volatile int *)0 = 1; +} + +void foo2(int x) { + if (!(x))*(volatile int*)0 = 1; +} + +void foo3(int x) { + if (!(x)) { * (volatile int *)0 = 1; } +} + +void foo4(int x) { + if (!(x)) { *(volatile int*)0 = 1; } +} |