diff options
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/input/cpp/pp-pragma.cpp')
-rw-r--r-- | debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/input/cpp/pp-pragma.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/input/cpp/pp-pragma.cpp b/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/input/cpp/pp-pragma.cpp new file mode 100644 index 00000000..75b3c46d --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/input/cpp/pp-pragma.cpp @@ -0,0 +1,21 @@ +#include <stdio.h> +int main(int argc, char** argv) +{ +#ifdef DEBUG +#define FORMAT "argc=%d\n" +std::printf(FORMAT,argc); +#undef FORMAT +#endif DEBUG +#ifdef _OPENMP +#pragma omp parallel +{ +printf("Hello from thread!\n"); +} +#endif + +#pragma CoverageScanner(cov-off) +__pragma ( CoverageScanner(cov-off) ) +_Pragma ( CoverageScanner(cov-off) ) + +return 0; +} |