xref: /Universal-ctags/Units/parser-cxx.r/signature.cpp.d/input.cpp (revision b50d191f9e7dc60093d242b63880727a622f8f3b)
1 /* Tests for collection of signature */
2 
foo(int a,char b)3 void foo (int a, char b) {}
4 
5 /* note that K&R style declarations are not valid in C++ */
6 //int bar (a, b) int a; char b; {}
7 
bar(char * c,double d[]) const8 char *BAR::bar (char *c, double d[]) const {}
9 
10 void foobar __ARGS ((int a, char b));
11 
12 
13 void params1(const char * c = "blah");
14 void params2(char x = 'x');
15 void params3(char x = ' ');
16 void params4(char x = ',');
17 void params5(char x = '\n');
18 void params6(char x = '\t',int n = 10,const char * v = "a string with\na newline");
19 void params7(char x = '	',	// This is  tab char
20 	     float p = 3.14,
21 	     const char * v = "a string with a tab char:	"
22 	     );
23