Created
October 3, 2012 23:33
-
-
Save sharth/3830572 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class X { | |
public: | |
X() { | |
this->val = rand(); | |
} | |
int val; | |
}; | |
static X global_value; | |
extern "C" { | |
int compute() { | |
return global_value.val; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment