Latest incoming is 3.6, so you are on an earlier version, but it probably
doesn't matter here.

Do the web console or network consoles show any errors? Are you using a
file:// url (which fails in some browsers)?

- Alon


On Wed, Mar 25, 2015 at 3:38 PM, <[email protected]> wrote:

> Hi the following code works fine (in the browser) when used with O1
> optimisations or lower, but seems to fail when O2 or higher is used. Does
> anyone have any idea why this might be happening ? I have tested this with
> the latest incoming (LLVM 3.5).
>
> #include <iostream>
> #include <boost/shared_ptr.hpp>
> using namespace std;
>
> extern "C" {
>   double test(void) {
>     boost::shared_ptr<int> y = boost::shared_ptr<int>(new int(42));
>     return *y;
>   }
> }
>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to