Skip to content

Commit 71b426d

Browse files
authored
Update 2025-11-30-comptime-c-functions.md
1 parent cd65ed2 commit 71b426d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

_posts/2025-11-30-comptime-c-functions.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ It still keeps the `calloc()` and `free()` around:
216216
ret
217217
```
218218

219-
But GCC manages to optimize them away when the `printf("All tests passed.\n");` at the end of `main()` is removed, for some reason?!
219+
But GCC manages to optimize them away when the `printf("All tests passed.\n");` at the end of `main()` is removed, for some unkown reason.
220220

221221
Copy of the code on [Compiler Explorer](https://godbolt.org/z/eecK3rK7z):
222222

@@ -334,5 +334,6 @@ static inline void macro_version(size_t capacity) {
334334
int main() {
335335
size_t capacity = 2;
336336
macro_version(capacity);
337+
printf("All tests passed.\n");
337338
}
338339
```

0 commit comments

Comments
 (0)