File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/tools/miri/tests/native-lib Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 11#include <stdio.h>
22
3- /* Test: ` test_pointer` */
3+ /* Test: test_pointer */
44
55void print_pointer (const int * ptr ) {
66 printf ("printing pointer dereference from C: %d\n" , * ptr );
77}
88
9- /* Test: ` test_simple` */
9+ /* Test: test_simple */
1010
1111typedef struct Simple {
1212 int field ;
@@ -16,16 +16,16 @@ int access_simple(const Simple *s_ptr) {
1616 return s_ptr -> field ;
1717}
1818
19- /* Test: ` test_nested` */
19+ /* Test: test_nested */
2020
2121typedef struct Nested {
2222 int value ;
2323 struct Nested * next ;
2424} Nested ;
2525
26- // Returns the innermost/last ` value` of a ` Nested` pointer chain.
26+ // Returns the innermost/last value of a Nested pointer chain.
2727int 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).
2929 if (!n_ptr ) { return 0 ; }
3030
3131 while (n_ptr -> next ) {
@@ -35,7 +35,7 @@ int access_nested(const Nested *n_ptr) {
3535 return n_ptr -> value ;
3636}
3737
38- /* Test: ` test_static */
38+ /* Test: test_static */
3939
4040typedef struct Static {
4141 int value ;
You can’t perform that action at this time.
0 commit comments