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

Unified Diff: test/NaCl/PNaClABI/abi-addrspace.ll

Issue 939073008: Rebased PNaCl localmods in LLVM to 223109 (Closed)
Patch Set: undo localmod Created 5 years, 10 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 | « test/NaCl/Localmods/lit.local.cfg ('k') | test/NaCl/PNaClABI/abi-aliases.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/NaCl/PNaClABI/abi-addrspace.ll
diff --git a/test/NaCl/PNaClABI/abi-addrspace.ll b/test/NaCl/PNaClABI/abi-addrspace.ll
new file mode 100644
index 0000000000000000000000000000000000000000..9a737b513a79ac430ee722232755095c5f2d999f
--- /dev/null
+++ b/test/NaCl/PNaClABI/abi-addrspace.ll
@@ -0,0 +1,16 @@
+; RUN: not pnacl-abicheck < %s | FileCheck %s
+
+; This test checks that the "addrspace" pointer attribute is rejected
+; by the PNaCl ABI verifier. The only allowed address space value is
+; 0 (the default).
+
+@var = addrspace(1) global [4 x i8] c"xxxx"
+; CHECK: Variable var has addrspace attribute (disallowed)
+
+define void @func() {
+ inttoptr i32 0 to i32 addrspace(2)*
+; CHECK: disallowed: bad result type: {{.*}} inttoptr {{.*}} addrspace
+ ret void
+}
+
+; CHECK-NOT: disallowed
« no previous file with comments | « test/NaCl/Localmods/lit.local.cfg ('k') | test/NaCl/PNaClABI/abi-aliases.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698