diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2008-05-20 08:59:34 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2008-05-20 08:59:34 +0000 |
commit | 256f77e431bc6b920ec94cf0bb4ad339ca21b8c9 (patch) | |
tree | 21a31e3a0994240e5703884577ca01ad1de5a437 /test/CodeGen/builtin-stackaddress.c | |
parent | e590a84c6ee3d6220d435ba9137012a4a631376c (diff) |
Add codegen support for stack address intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51309 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/builtin-stackaddress.c')
-rw-r--r-- | test/CodeGen/builtin-stackaddress.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGen/builtin-stackaddress.c b/test/CodeGen/builtin-stackaddress.c new file mode 100644 index 0000000000..2b9c799661 --- /dev/null +++ b/test/CodeGen/builtin-stackaddress.c @@ -0,0 +1,16 @@ +// RUN: clang -emit-llvm < %s +void* a(unsigned x) { +return __builtin_return_address(0); +} + +void* c(unsigned x) { +return __builtin_frame_address(0); +} +// RUN: clang -emit-llvm < %s +void* a(unsigned x) { +return __builtin_return_address(0); +} + +void* c(unsigned x) { +return __builtin_frame_address(0); +} |