-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CN: shrink tag_defs array, warn on big arrays
This test exposed an issue with the way a value check is created, e.g. in the expansion of good<char[SZ]> when SZ is large. This now leads to a warning (for SZ > 100) and is reduced in the test. TODO: fix this properly.
- Loading branch information
Showing
2 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
enum { | ||
ARRAY_SIZE = 128 | ||
}; | ||
|
||
int f(int *p) | ||
/*@ requires take P = Owned<char[4096]>(p) @*/ | ||
/*@ ensures take P2 = Owned<char[4096]>(p) @*/ | ||
/*@ requires take P = Owned<char[ARRAY_SIZE]>(p) @*/ | ||
/*@ ensures take P2 = Owned<char[ARRAY_SIZE]>(p) @*/ | ||
{ | ||
return 0; | ||
} |