We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37a11f9 commit d074537Copy full SHA for d074537
regression/cbmc/return6/f_def.c
@@ -0,0 +1,4 @@
1
+unsigned f()
2
+{
3
+ return 0x34;
4
+}
regression/cbmc/return6/main.c
@@ -0,0 +1,11 @@
+#include <assert.h>
+
+// Do not declare f().
+// This is invalid from C99 upwards, but kind of ok before.
5
6
+int main()
7
8
+ int return_value;
9
+ return_value=f();
10
+ assert(return_value==0x34);
11
regression/cbmc/return6/test.desc
@@ -0,0 +1,8 @@
+KNOWNBUG
+main.c
+f_def.c
+^EXIT=0$
+^SIGNAL=0$
+^VERIFICATION SUCCESSFUL$
+--
+^warning: ignoring
0 commit comments