We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60cf081 commit ea60c3dCopy full SHA for ea60c3d
1 file changed
tests/regression/69-addresses/02-array-cast.c
@@ -0,0 +1,20 @@
1
+// SKIP
2
+#include <goblint.h>
3
+
4
+int main() {
5
+ int a[10];
6
+ int *b = a;
7
8
+ assert(a == b);
9
+ assert(a + 4 == b + 4);
10
11
+ char *b_char = (char*) a;
12
+ assert((void*) a == (void*) b_char );
13
14
+ char* a_intoffset = a + 1;
15
+ char* b_intoffset = b_char + sizeof(int);
16
17
+ __goblint_check(a_intoffset == b_intoffset);
18
+ __goblint_check((char*) (a + 1) == b_char + sizeof(int));
19
+ return 0;
20
+}
0 commit comments