diff options
Diffstat (limited to 'libctf/testsuite')
-rw-r--r-- | libctf/testsuite/libctf-lookup/enum-many-ctf.c | 10 | ||||
-rw-r--r-- | libctf/testsuite/libctf-lookup/enum-many.lk | 101 |
2 files changed, 111 insertions, 0 deletions
diff --git a/libctf/testsuite/libctf-lookup/enum-many-ctf.c b/libctf/testsuite/libctf-lookup/enum-many-ctf.c new file mode 100644 index 0000000..f2297d7 --- /dev/null +++ b/libctf/testsuite/libctf-lookup/enum-many-ctf.c @@ -0,0 +1,10 @@ +/* Looked up item by item. */ +enum e { ENUMSAMPLE_1 = 0, ENUMSAMPLE_2 = 1 }; + +/* Looked up via both sorts of iterator in turn. */ +enum ie { IE_0 = -10, IE_1, IE_2, IE_3, IE_4, IE_5, IE_6, IE_7, IE_8, IE_9, IE_A, IE_B, IE_C, IE_D, IE_E, IE_F, + IE_10, IE_11, IE_12, IE_13, IE_14, IE_15, IE_16, IE_17, IE_18, IE_19, IE_1A, IE_1B, IE_1C, IE_1D, IE_1E, IE_1F, + IE_20, IE_21, IE_22, IE_23, IE_24, IE_25, IE_26, IE_27, IE_28, IE_29, IE_2A, IE_2B, IE_2C, IE_2D, IE_2E, IE_2F}; + +enum e foo; +enum ie bar; diff --git a/libctf/testsuite/libctf-lookup/enum-many.lk b/libctf/testsuite/libctf-lookup/enum-many.lk new file mode 100644 index 0000000..17eca66 --- /dev/null +++ b/libctf/testsuite/libctf-lookup/enum-many.lk @@ -0,0 +1,101 @@ +# source: enum-many-ctf.c +# lookup: enum.c +# link: on +Enum e enumerand ENUMSAMPLE_1 has value 0 +Enum e enumerand ENUMSAMPLE_2 has value 1 +iter test: IE_0 has value -10 +iter test: IE_1 has value -9 +iter test: IE_2 has value -8 +iter test: IE_3 has value -7 +iter test: IE_4 has value -6 +iter test: IE_5 has value -5 +iter test: IE_6 has value -4 +iter test: IE_7 has value -3 +iter test: IE_8 has value -2 +iter test: IE_9 has value -1 +iter test: IE_A has value 0 +iter test: IE_B has value 1 +iter test: IE_C has value 2 +iter test: IE_D has value 3 +iter test: IE_E has value 4 +iter test: IE_F has value 5 +iter test: IE_10 has value 6 +iter test: IE_11 has value 7 +iter test: IE_12 has value 8 +iter test: IE_13 has value 9 +iter test: IE_14 has value 10 +iter test: IE_15 has value 11 +iter test: IE_16 has value 12 +iter test: IE_17 has value 13 +iter test: IE_18 has value 14 +iter test: IE_19 has value 15 +iter test: IE_1A has value 16 +iter test: IE_1B has value 17 +iter test: IE_1C has value 18 +iter test: IE_1D has value 19 +iter test: IE_1E has value 20 +iter test: IE_1F has value 21 +iter test: IE_20 has value 22 +iter test: IE_21 has value 23 +iter test: IE_22 has value 24 +iter test: IE_23 has value 25 +iter test: IE_24 has value 26 +iter test: IE_25 has value 27 +iter test: IE_26 has value 28 +iter test: IE_27 has value 29 +iter test: IE_28 has value 30 +iter test: IE_29 has value 31 +iter test: IE_2A has value 32 +iter test: IE_2B has value 33 +iter test: IE_2C has value 34 +iter test: IE_2D has value 35 +iter test: IE_2E has value 36 +iter test: IE_2F has value 37 +next test: IE_0 has value -10 +next test: IE_1 has value -9 +next test: IE_2 has value -8 +next test: IE_3 has value -7 +next test: IE_4 has value -6 +next test: IE_5 has value -5 +next test: IE_6 has value -4 +next test: IE_7 has value -3 +next test: IE_8 has value -2 +next test: IE_9 has value -1 +next test: IE_A has value 0 +next test: IE_B has value 1 +next test: IE_C has value 2 +next test: IE_D has value 3 +next test: IE_E has value 4 +next test: IE_F has value 5 +next test: IE_10 has value 6 +next test: IE_11 has value 7 +next test: IE_12 has value 8 +next test: IE_13 has value 9 +next test: IE_14 has value 10 +next test: IE_15 has value 11 +next test: IE_16 has value 12 +next test: IE_17 has value 13 +next test: IE_18 has value 14 +next test: IE_19 has value 15 +next test: IE_1A has value 16 +next test: IE_1B has value 17 +next test: IE_1C has value 18 +next test: IE_1D has value 19 +next test: IE_1E has value 20 +next test: IE_1F has value 21 +next test: IE_20 has value 22 +next test: IE_21 has value 23 +next test: IE_22 has value 24 +next test: IE_23 has value 25 +next test: IE_24 has value 26 +next test: IE_25 has value 27 +next test: IE_26 has value 28 +next test: IE_27 has value 29 +next test: IE_28 has value 30 +next test: IE_29 has value 31 +next test: IE_2A has value 32 +next test: IE_2B has value 33 +next test: IE_2C has value 34 +next test: IE_2D has value 35 +next test: IE_2E has value 36 +next test: IE_2F has value 37 |