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

Side by Side Diff: test/NaCl/PNaClABI/abi-varargs.ll

Issue 1151093004: Changes from 3.7 merge to files not in upstream (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 ; RUN: not pnacl-abicheck < %s | FileCheck %s 1 ; RUN: not pnacl-abicheck < %s | FileCheck %s
2 2
3 define void @varargs_func(i32 %arg, ...) { 3 define void @varargs_func(i32 %arg, ...) {
4 ret void 4 ret void
5 } 5 }
6 ; CHECK: Function varargs_func has disallowed type: void (i32, ...) 6 ; CHECK: Function varargs_func has disallowed type: void (i32, ...)
7 7
8 define void @call_varargs_func(i32 %ptr) { 8 define void @call_varargs_func(i32 %ptr) {
9 %ptr2 = inttoptr i32 %ptr to void (i32, ...)* 9 %ptr2 = inttoptr i32 %ptr to void (i32, ...)*
10 call void (i32, ...)* %ptr2(i32 123) 10 call void (i32, ...) %ptr2(i32 123)
11 ret void 11 ret void
12 } 12 }
13 ; CHECK: Function call_varargs_func disallowed: bad function callee operand: cal l void (i32, ...)* 13 ; CHECK: Function call_varargs_func disallowed: bad function callee operand: cal l void (i32, ...)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698