Created
December 6, 2013 22:45
-
-
Save alexcrichton/7833435 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@foo = thread_local global i32 3 | |
define i32 @main() { | |
%1 = load i32* @foo | |
ret i32 %1 | |
} | |
// ./x86_64-apple-darwin/llvm/Release+Asserts/bin/llc foo.ll -filetype=obj | |
// gcc -o foo foo.o | |
// ./foo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output: