mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-22 18:40:29 +00:00
Auto-generate some documentation
This commit is contained in:
parent
117d0111ab
commit
13437dd19b
97 changed files with 2033 additions and 661 deletions
6
third_party/chibicc/test/vla_test.c
vendored
6
third_party/chibicc/test/vla_test.c
vendored
|
@ -1,3 +1,4 @@
|
|||
#include "libc/macros.h"
|
||||
#include "third_party/chibicc/test/test.h"
|
||||
|
||||
int main() {
|
||||
|
@ -6,6 +7,11 @@ int main() {
|
|||
int x[n];
|
||||
sizeof(x);
|
||||
}));
|
||||
ASSERT(5, ({
|
||||
int n = 5;
|
||||
int x[n];
|
||||
ARRAYLEN(x);
|
||||
}));
|
||||
ASSERT((5 + 1) * (8 * 2) * 4, ({
|
||||
int m = 5, n = 8;
|
||||
int x[m + 1][n * 2];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue