summaryrefslogtreecommitdiffstats
path: root/kate/cppsymbolviewer/testfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'kate/cppsymbolviewer/testfile.c')
-rw-r--r--kate/cppsymbolviewer/testfile.c59
1 files changed, 59 insertions, 0 deletions
diff --git a/kate/cppsymbolviewer/testfile.c b/kate/cppsymbolviewer/testfile.c
new file mode 100644
index 0000000..8f5f959
--- /dev/null
+++ b/kate/cppsymbolviewer/testfile.c
@@ -0,0 +1,59 @@
+/** Test File...very demoniac for parsing... **/
+#include <stdio.h>
+#include <stdlib.h>
+
+#ifdef (_cplusplus)
+{
+#define VALUE 5
+
+#define MACRO(x) (x^2)
+
+# define abs_float(x) \
+ ( ((x)<0) ? -(x) : (x) )
+
+
+typedef struct
+ {
+ pTest *pNext;
+ pTest *pPrev;
+ }
+ Another_test, *pTest;
+
+typedef struct xauth
+{
+ unsigned short family;
+ char *address;
+} Xauth;
+
+typedef struct {
+ color to_move;
+ occupant board[8][8];
+ } game;
+
+typedef game gt_data;
+
+/*
+ A comment with a function hello() { }
+*/
+// Continued...
+
+RockType *
+ MyMusicFunction(
+ void *Red,
+ int Hot, // Comment double slash
+ char Chili, /* Comment inline */
+ unsigned long Peppers)
+// A comment..just to make some noise...
+{
+ // Passed first stage ???
+ // Ok..get ready for the second one !
+ if(I_Have_Failed() >= 0 && /* comments everywhere :} */
+ This_Appears() == 1)
+ {
+ printf("Damn !!! Better going to bed :((");
+ if ( vs ) // here you are ;}
+ activateSpace( vs->currentView() );
+ }
+}
+
+ }