Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Unified Diff: tests_lit/llvm2ice_tests/external_declaration.ll

Issue 1774383002: PNaCl Dynamic Linking: Force __pnacl_pso_root to be an external declaration. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@fixes
Patch Set: Updated external declaration test Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/PNaClTranslator.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests_lit/llvm2ice_tests/external_declaration.ll
diff --git a/tests_lit/llvm2ice_tests/external_declaration.ll b/tests_lit/llvm2ice_tests/external_declaration.ll
new file mode 100644
index 0000000000000000000000000000000000000000..cf8a8bc7132fb9523df3a1f5cc7948959e883a0e
--- /dev/null
+++ b/tests_lit/llvm2ice_tests/external_declaration.ll
@@ -0,0 +1,13 @@
+; Tests that any symbols with special names have specially treated linkage.
+
+; RUN: %if --need=allow_dump --command %p2i -i %s --filetype=asm \
+; RUN: --args -nonsfi=0 \
+; RUN: | %if --need=allow_dump --command FileCheck %s
+
+; Verify that "__pnacl_pso_root", a specially named symbol, is made global, but
+; other global variables are not.
+@__pnacl_pso_root = constant [4 x i8] c"abcd";
+@__pnacl_pso_not_root = constant [4 x i8] c"efgh";
+
+; CHECK: .globl __pnacl_pso_root
+; CHECK-NOT: .globl __pnacl_pso_not_root
« no previous file with comments | « src/PNaClTranslator.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698