diff options
author | John McCall <rjmccall@apple.com> | 2010-05-27 18:47:06 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-05-27 18:47:06 +0000 |
commit | 02269a66b362f1345cc12176f7e2cbc5474d2f02 (patch) | |
tree | eb5bc323a5bc15c88e91a6d326ac7bd48c4f1e2d /clang/test/CodeGen/builtins.c | |
parent | dc53f1cb5ccbe554b0ce23bf26bae802763c3b10 (diff) | |
download | bcm5719-llvm-02269a66b362f1345cc12176f7e2cbc5474d2f02.tar.gz bcm5719-llvm-02269a66b362f1345cc12176f7e2cbc5474d2f02.zip |
Enable the implementation of __builtin_setjmp and __builtin_longjmp. Not all
LLVM backends support these yet.
llvm-svn: 104867
Diffstat (limited to 'clang/test/CodeGen/builtins.c')
-rw-r--r-- | clang/test/CodeGen/builtins.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGen/builtins.c b/clang/test/CodeGen/builtins.c index 8b6125806ef..2355fb43243 100644 --- a/clang/test/CodeGen/builtins.c +++ b/clang/test/CodeGen/builtins.c @@ -195,3 +195,10 @@ void test_float_builtins(float F, double D, long double LD) { // CHECK: and i1 } +// CHECK: define void @test_builtin_longjmp +void test_builtin_longjmp(void **buffer) { + // CHECK: [[BITCAST:%.*]] = bitcast + // CHECK-NEXT: call void @llvm.eh.sjlj.longjmp(i8* [[BITCAST]]) + __builtin_longjmp(buffer, 1); + // CHECK-NEXT: unreachable +} |