diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2011-10-20 21:14:49 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2011-10-20 21:14:49 +0000 |
| commit | 36981b17ed939300f6f8fc2355a255f711fcef71 (patch) | |
| tree | ee2483e98b09cac943dc93a6969d83ca737ff139 /test/CodeGen/function-attributes.c | |
| parent | 180abc3db9ae3b4fc63cd65b15697e6ffcc8a657 (diff) | |
Notes
Diffstat (limited to 'test/CodeGen/function-attributes.c')
| -rw-r--r-- | test/CodeGen/function-attributes.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/CodeGen/function-attributes.c b/test/CodeGen/function-attributes.c index 3a1030a61b90..6cbf40ba220f 100644 --- a/test/CodeGen/function-attributes.c +++ b/test/CodeGen/function-attributes.c @@ -89,3 +89,25 @@ void f15(void) { void __attribute__((force_align_arg_pointer)) f16(void) { } +// PR11038 +// CHECK: define void @f18() +// CHECK: returns_twice +// CHECK: { +// CHECK: call void @f17() +// CHECK: returns_twice +// CHECK: ret void +__attribute__ ((returns_twice)) void f17(void); +__attribute__ ((returns_twice)) void f18(void) { + f17(); +} + +// CHECK: define void @f19() +// CHECK: { +// CHECK: call i32 @setjmp(i32* null) +// CHECK: returns_twice +// CHECK: ret void +typedef int jmp_buf[((9 * 2) + 3 + 16)]; +int setjmp(jmp_buf); +void f19(void) { + setjmp(0); +} |
