File tree 1 file changed +6
-6
lines changed
src/tools/miri/tests/native-lib
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
#include <stdio.h>
2
2
3
- /* Test: ` test_pointer` */
3
+ /* Test: test_pointer */
4
4
5
5
void print_pointer (const int * ptr ) {
6
6
printf ("printing pointer dereference from C: %d\n" , * ptr );
7
7
}
8
8
9
- /* Test: ` test_simple` */
9
+ /* Test: test_simple */
10
10
11
11
typedef struct Simple {
12
12
int field ;
@@ -16,16 +16,16 @@ int access_simple(const Simple *s_ptr) {
16
16
return s_ptr -> field ;
17
17
}
18
18
19
- /* Test: ` test_nested` */
19
+ /* Test: test_nested */
20
20
21
21
typedef struct Nested {
22
22
int value ;
23
23
struct Nested * next ;
24
24
} Nested ;
25
25
26
- // Returns the innermost/last ` value` of a ` Nested` pointer chain.
26
+ // Returns the innermost/last value of a Nested pointer chain.
27
27
int access_nested (const Nested * n_ptr ) {
28
- // Edge case: `n_ptr == NULL`, first ` Nested` is None).
28
+ // Edge case: `n_ptr == NULL` (i.e. first Nested is None).
29
29
if (!n_ptr ) { return 0 ; }
30
30
31
31
while (n_ptr -> next ) {
@@ -35,7 +35,7 @@ int access_nested(const Nested *n_ptr) {
35
35
return n_ptr -> value ;
36
36
}
37
37
38
- /* Test: ` test_static */
38
+ /* Test: test_static */
39
39
40
40
typedef struct Static {
41
41
int value ;
You can’t perform that action at this time.
0 commit comments