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

Unified Diff: test/NaCl/PNaClABI/abi-call-attributes.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/PNaClABI/abi-blockaddress.ll ('k') | test/NaCl/PNaClABI/abi-debug-info.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/NaCl/PNaClABI/abi-call-attributes.ll
diff --git a/test/NaCl/PNaClABI/abi-call-attributes.ll b/test/NaCl/PNaClABI/abi-call-attributes.ll
new file mode 100644
index 0000000000000000000000000000000000000000..284503208be5f9f0d98c0c46f335c332ecbac21e
--- /dev/null
+++ b/test/NaCl/PNaClABI/abi-call-attributes.ll
@@ -0,0 +1,20 @@
+; RUN: not pnacl-abicheck < %s | FileCheck %s
+
+define void @func(i32 %arg) {
+ ret void
+}
+
+define void @calls() {
+ call void @func(i32 1) noreturn nounwind
+; CHECK: disallowed: bad call attributes: call void @func(i32 1) #
+
+ call void @func(i32 inreg 1)
+; CHECK-NEXT: disallowed: bad call attributes: call void @func(i32 inreg 1)
+
+ call fastcc void @func(i32 1)
+; CHECK-NEXT: disallowed: bad calling convention: call fastcc void @func(i32 1)
+
+ ret void
+}
+
+; CHECK-NOT: disallowed
« no previous file with comments | « test/NaCl/PNaClABI/abi-blockaddress.ll ('k') | test/NaCl/PNaClABI/abi-debug-info.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698