diff options
Diffstat (limited to 'clang/test/Frontend')
| -rw-r--r-- | clang/test/Frontend/ir-support-codegen.ll | 8 | ||||
| -rw-r--r-- | clang/test/Frontend/ir-support-errors.ll | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/clang/test/Frontend/ir-support-codegen.ll b/clang/test/Frontend/ir-support-codegen.ll new file mode 100644 index 00000000000..046b3af1c3e --- /dev/null +++ b/clang/test/Frontend/ir-support-codegen.ll @@ -0,0 +1,8 @@ +; RUN: %clang_cc1 -S -o - %s | FileCheck %s + +target triple = "x86_64-apple-darwin10" + +; CHECK: .globl _f0 +define i32 @f0() nounwind ssp { + ret i32 0 +} diff --git a/clang/test/Frontend/ir-support-errors.ll b/clang/test/Frontend/ir-support-errors.ll new file mode 100644 index 00000000000..98227d46f7a --- /dev/null +++ b/clang/test/Frontend/ir-support-errors.ll @@ -0,0 +1,8 @@ +; RUN: %clang_cc1 -S -o - %s 2>&1 | FileCheck %s + +target triple = "x86_64-apple-darwin10" + +define i32 @f0() nounwind ssp { +; CHECK: {{.*}}ir-support-errors.ll:7:16: error: expected value token + ret i32 x +} |

