diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2024-11-25 15:27:35 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-25 15:27:35 +0100 |
| commit | 7c3ce334d6914f73165eb66e253a2176c77d69d6 (patch) | |
| tree | a9830ce67e101ce4ded986e28a53e43eeaa86a46 /src/bug_report.cpp | |
| parent | f213b8e5cfa5220614282d6fe0495e158c2a6e04 (diff) | |
Fix #4508 for abs, min, max (#4516)
* Fix #4508 for abs, min, max and the rest of the builtins.
None of these segfault now:
```odin
package bug
main :: proc() {
p :: proc() {}
// _ = len(p())
// _ = cap(p())
// _ = size_of(p())
// _ = align_of(p())
// T :: struct {}
// _ = offset_of(p())
// _ = offset_of(T, p())
// _ = offset_of(p(), foo)
// _ = offset_of(p(), "")
// _ = type_of(p())
// _ = type_info_of(p())
// _ = typeid_of(p())
// A: [4]int
// _ = swizzle(p()) // :: proc(x: [N]T, indices: ..int) -> [len(indices)]T ---
// _ = swizzle(A, p()) // :: proc(x: [N]T, indices: ..int) -> [len(indices)]T ---
// _ = complex(p(), p())
// _ = quaternion(p(), p(), p(), p())
// _ = quaternion(w=p(), x=p(), y=p(), z=p())
// _ = real(p())
// _ = imag(p())
// _ = jmag(p())
// _ = kmag(p())
// _ = conj(p())
// _ = expand_values(p())
// _ = min(p())
// _ = max(p())
// _ = abs(p())
// _ = clamp(p(), p(), p())
// _ = soa_zip(p())
// _ = soa_unzip(p())
}
```
Diffstat (limited to 'src/bug_report.cpp')
0 files changed, 0 insertions, 0 deletions