Index: test/NaCl/PNaClABI/abi-externals-whitelist-pso.ll |
diff --git a/test/NaCl/PNaClABI/abi-externals-whitelist-pso.ll b/test/NaCl/PNaClABI/abi-externals-whitelist-pso.ll |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ed9af5c0b79ffaa46979fb484694b57ae53b3856 |
--- /dev/null |
+++ b/test/NaCl/PNaClABI/abi-externals-whitelist-pso.ll |
@@ -0,0 +1,8 @@ |
+; RUN: not pnacl-abicheck < %s | FileCheck %s |
+ |
+@global_var = global [4 x i8] c"abcd" |
+; CHECK: global_var is not a valid external symbol (disallowed) |
+ |
+; __pnacl_pso_root is whitelisted. |
+@__pnacl_pso_root = global [4 x i8] c"abcd" |
+; CHECK-NOT: disallowed |