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

Unified Diff: test/Transforms/MinSFI/abi-verifier-whitelist-syscalls.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
Index: test/Transforms/MinSFI/abi-verifier-whitelist-syscalls.ll
diff --git a/test/Transforms/MinSFI/abi-verifier-whitelist-syscalls.ll b/test/Transforms/MinSFI/abi-verifier-whitelist-syscalls.ll
new file mode 100644
index 0000000000000000000000000000000000000000..68f458590e68f4622fcc636f2de71e4244b36892
--- /dev/null
+++ b/test/Transforms/MinSFI/abi-verifier-whitelist-syscalls.ll
@@ -0,0 +1,18 @@
+; RUN: opt %s -verify-pnaclabi-module -pnaclabi-allow-minsfi-syscalls -S \
+; RUN: | FileCheck -check-prefix=CHECK-WITHFLAG %s
+; RUN: not opt %s -verify-pnaclabi-module -S 2>&1 \
+; RUN: | FileCheck -check-prefix=CHECK-NOFLAG %s
+
+target datalayout = "p:32:32:32"
+target triple = "le32-unknown-nacl"
+
+define i32 @_start(i32 %args) {
+ ret i32 0
+}
+
+declare i32 @__minsfi_syscall_dummy(i32)
+
+; CHECK-NOFLAG: __minsfi_syscall_dummy is declared but not defined
+; CHECK-NOFLAG: __minsfi_syscall_dummy is not a valid external symbol
+
+; CHECK-WITHFLAG: declare i32 @__minsfi_syscall_dummy(i32)
« no previous file with comments | « test/Transforms/InstCombine/overflow-mul.ll ('k') | test/Transforms/MinSFI/abi-verifier-whitelist-syscalls-global.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698