blob: 1c3dd0d4cbadf5f43ef8bc979f1080a29fd59c30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
; RUN: opt < %s -rewrite-pnacl-library-calls -S 2>&1 | FileCheck %s
; Test that the pass enforces not being able to store the address
; of setjmp.
declare i32 @setjmp(i64*)
define i32 @takeaddr_setjmp(i64* %arg) {
%fp = alloca i32 (i64*)*, align 8
; CHECK: Taking the address of setjmp is invalid
store i32 (i64*)* @setjmp, i32 (i64*)** %fp, align 8
ret i32 7
}
|