| Index: test/Transforms/NaCl/rewrite-global-ptr-longjmp.ll
|
| diff --git a/test/Transforms/NaCl/rewrite-global-ptr-longjmp.ll b/test/Transforms/NaCl/rewrite-global-ptr-longjmp.ll
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7a5315bb332db2a87a193462847763264177d36c
|
| --- /dev/null
|
| +++ b/test/Transforms/NaCl/rewrite-global-ptr-longjmp.ll
|
| @@ -0,0 +1,11 @@
|
| +; RUN: opt < %s -rewrite-pnacl-library-calls -S | FileCheck %s
|
| +; Check that rewriting of the function pointer in globals work
|
| +; correctly.
|
| +
|
| +declare void @longjmp(i64*, i32)
|
| +
|
| +; CHECK: @GlobFP = private global void (i64*, i32)* @__nacl_wrap_longjmp, align 8
|
| +@GlobFP = global void (i64*, i32)* @longjmp, align 8
|
| +
|
| +; CHECK: define private void @__nacl_wrap_longjmp(i64* %env, i32 %val) {
|
| +
|
|
|