# Runtime detection of inlining

**URL:** <https://discourse.julialang.org/t/runtime-detection-of-inlining/4816>\
**Category:** General Usage\
**Created:** [July 12, 2017, 6:14pm UTC](https://discourse.julialang.org/t/runtime-detection-of-inlining/4816 "2017-07-12T18:14:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JaredCrean2](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jaredcrean2/32/3574_2.png) [@JaredCrean2](https://discourse.julialang.org/u/JaredCrean2)\
**Post date:** [July 12, 2017, 6:14pm UTC](https://discourse.julialang.org/t/runtime-detection-of-inlining/4816/1 "2017-07-12T18:14:48Z")

</div>

Is there a way to find out of inlining is enabled at runtime (ie. was julia launched with `--inline=no`)? I want to test that a certain operation is non-allocating, but it doesn’t pass Travis tests because they run with inlining disabled (on version 0.4).

---

<div class="post-metadata">

**Author:** ![ihnorton](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ihnorton/32/26_2.png) [@ihnorton](https://discourse.julialang.org/u/ihnorton)\
**Post date:** [July 12, 2017, 6:38pm UTC](https://discourse.julialang.org/t/runtime-detection-of-inlining/4816/2 "2017-07-12T18:38:38Z")

</div>

`Base.JLOptions().can_inline`
