on 5b2da2b help sign in
62 lines 990 B history raw
1#include <stdio.h>
2#include <stdlib.h>
3#include <stdbool.h>
5void test_function()
6{
7#define TEST
8#ifdef TEST
9 printf("TEST is defined\n");
10#endif
13struct Node
15 int val;
16 struct Node *next;
17};
19int main(int argc, char **argv)
21 /* This C program was written to help bat
22 * with its syntax highlighting tests
23 */
25 // Calling test function
26 test_function();
27 struct Node *head = NULL;
28 head = (struct Node *)malloc(sizeof(struct Node *));
29 head->val = -1;
30 if (head->val == 1 * -1)
31 {
32 head->val = 10;
33 }
34 else
35 {
36 head->val = argc;
37 }
38 int t = head->val, count = 0;
39 free(head);
40 while (t--)
41 {
42 count++;
43 }
44 for (int i = t; i < count; ++i)
45 {
46 do
47 {
48 --count;
49 } while (false);
50 }
51 enum chars
52 {
53 M,
54 I,
55 T,
56 H,
57 L
58 };
59 char *string = "string";
60 printf("true is #define true %d\n", true);
61 return 0;