// cbVan: Code Beautifier test // #define ASD 232 // test of funny punctuation; //A //B //C //D //E #include#include /* use option to #define KR */ #ifdef KR int main(argc, argv) int argc; char *argv[]; #else int main (int argc, char *argv[]) #endif { double a, b, c, d, e; a = b = c = d = e = 1.0; printf ("\n Hello, Starkville \n"); //1 for(a=1;b=2;c=3) d=5; a = b / c + e; //2 //3 //1 for(a=1;b=2;c=3) d=5; //4 //5 start: if (1) //test BAD1 { a = b / c + e; //this is a comment1 a = b / c + e; //this is a comment2 a = b / c + e; //this is a comment3 if (6) //test BAD10 { b = a; //ba100 b = a; //ba200 b = a; //ba300 } else; //A //B //C //D //E a = b / c + e; //this is a comment } else if (2) //test BAD2 { a = b / c + e; //A a = b / c + e; //this is a comment //B //C //D a = b / c + e; //this is a comment //E } else if (3) //test BAD3 a = 8; else //test BAD4 a = 4; if (3) /*test BAD3A*/ a = 8; else /*test BAD4B*/ if (3) /*test BAD3C*/ a = 8; else /* test BAD4D */ a = 4; /******************************************/ /* TEST OF STANDARD C COMMENTS */ /* REMARK: FOR BLOCK COMMENTS */ /******************************************/ /* In case of block comment, this is the time for all good men to come to the aid of their country. Or the crazy fox jumps over the lazy dog. Asterisk is added to flag the start of the comment. */ /* comments */ /* 1. comment */ /* 2. comment */ /* 3. comment */ if (1) { /* comment */ /* 1. comment */ a = b + c / d; /* 2. comment */ a = b + c / d; /* another commnent */ /* 3. comment */ /* A. */ /* B. */ /* C. */ /* D. */ /* */ } else { /* comment */ /* 1. comment */ /* 2. comment */ /* 3. comment */ } // end exit (0); }