-
Notifications
You must be signed in to change notification settings - Fork 74
/
testset.txt
43 lines (43 loc) · 1.51 KB
/
testset.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
help
set options
# test some declarations
declare x as pointer to character
declare x as reference to character
declare foo as pointer to member of class X int
declare foo as pointer to member of class X function (arg1, arg2) returning pointer to class Y
declare x as function returning int
declare x as function (a as int) returning void
declare x as func(w as pointer to char, y as int) ret pointer to int
declare x as func(pointer to char) ret pointer to int
declare x as func(int) ret pointer to int
declare x as func(pointer to char, int) ret pointer to int
declare x as function (args) returning pointer to int
# test some explain functions
explain char *x
explain int X::*foo
explain class Y *(X::*foo)(arg1, arg2)
explain int *x()
explain int *x(args)
explain int *x(char *)
explain int *x(char *, int)
explain int *x(char *, int, float)
explain int *x(int)
explain const int x
explain int const x
# test some casts
cast x into pointer to char
cast x into pointer to member of class X int
cast x into pointer to func ret int
cast x into pointer to func() ret int
cast x into pointer to func(args) ret int
cast x into pointer to func(x as pointer to char, y as int) ret int
cast x into pointer to func(pointer to char) ret int
cast x into pointer to func(pointer to char, int) ret int
cast x into pointer to func(pointer to char, int, float) ret int
# test explaining some casts
explain (char *)x
explain (int X::*)x
explain (int (*)())x
explain (int (*)(char *))x
explain (int (*)(char *, int))x
explain (int (*)(char *, int, float))x