Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 ; RUN: opt < %s -rewrite-pnacl-library-calls -S |& FileCheck %s | |
|
Mark Seaborn
2013/05/16 02:23:38
This syntax fails on Mac OS X:
/Volumes/data/b/bu
| |
| 2 ; Test that the pass enforces not being able to store the address | |
| 3 ; of setjmp. | |
| 4 | |
| 5 declare i32 @setjmp(i64*) | |
| 6 | |
| 7 define i32 @takeaddr_setjmp(i64* %arg) { | |
| 8 %fp = alloca i32 (i64*)*, align 8 | |
| 9 ; CHECK: Taking the address of setjmp is invalid | |
| 10 store i32 (i64*)* @setjmp, i32 (i64*)** %fp, align 8 | |
| 11 ret i32 7 | |
| 12 } | |
| 13 | |
| OLD | NEW |