We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 584c24f commit e3eb9c4Copy full SHA for e3eb9c4
regression/cbmc/union/union_large_array.c
@@ -0,0 +1,15 @@
1
+#define LARGE 100000
2
+
3
+// This is to test the efficiency of unions that contain a large array.
4
+union U
5
+{
6
+ char large_array[LARGE];
7
+ int something_else;
8
+};
9
10
+int main()
11
12
+ union U u;
13
+ u.something_else = 1234;
14
+ __CPROVER_assert(0, "should fail");
15
+}
regression/cbmc/union/union_large_array.desc
@@ -0,0 +1,11 @@
+CORE broken-smt-backend
+union_large_array.c
+^EXIT=10$
+^SIGNAL=0$
+^\[main\.assertion\.1\] line \d+ should fail: FAILURE$
+^\*\* 1 of 1 failed
+^VERIFICATION FAILED$
+--
+^warning: ignoring
0 commit comments