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

Unified Diff: test/NaCl/PNaClABI/abi-varargs.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-switch.ll ('k') | test/NaCl/PNaClABI/abi-visibility.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/NaCl/PNaClABI/abi-varargs.ll
diff --git a/test/NaCl/PNaClABI/abi-varargs.ll b/test/NaCl/PNaClABI/abi-varargs.ll
new file mode 100644
index 0000000000000000000000000000000000000000..58e98c83251e434acce42e060a6f29faca6f181e
--- /dev/null
+++ b/test/NaCl/PNaClABI/abi-varargs.ll
@@ -0,0 +1,13 @@
+; RUN: not pnacl-abicheck < %s | FileCheck %s
+
+define void @varargs_func(i32 %arg, ...) {
+ ret void
+}
+; CHECK: Function varargs_func has disallowed type: void (i32, ...)
+
+define void @call_varargs_func(i32 %ptr) {
+ %ptr2 = inttoptr i32 %ptr to void (i32, ...)*
+ call void (i32, ...)* %ptr2(i32 123)
+ ret void
+}
+; CHECK: Function call_varargs_func disallowed: bad function callee operand: call void (i32, ...)*
« no previous file with comments | « test/NaCl/PNaClABI/abi-switch.ll ('k') | test/NaCl/PNaClABI/abi-visibility.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698