diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-06-21 22:46:27 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-06-23 18:00:32 -0700 |
| commit | 8fdc8f392c3f5d1bdf601756bfe442b7698e6315 (patch) | |
| tree | 09175a847c4f73b5804195e60e3638f9aeee67c4 /src/rt/rust_builtin.cpp | |
| parent | 1841b31c61c2cca9c54264edd2a78b994b9638e9 (diff) | |
| download | rust-8fdc8f392c3f5d1bdf601756bfe442b7698e6315.tar.gz rust-8fdc8f392c3f5d1bdf601756bfe442b7698e6315.zip | |
Support foreign 'static mut' variables as well
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index e476fa0ad5e..6ae5e978106 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -154,6 +154,16 @@ debug_abi_2(floats f) { return ff; } +extern "C" int +debug_static_mut; + +int debug_static_mut = 3; + +extern "C" void +debug_static_mut_check_four() { + assert(debug_static_mut == 4); +} + /* Debug builtins for std::dbg. */ static void |
