From 222e2a7620e6520ffaf4fc4e69d79c18da31542e Mon Sep 17 00:00:00 2001 From: "Zancanaro; Carlo" Date: Mon, 24 Sep 2012 09:58:17 +1000 Subject: Add the clang library to the repo (with some of my changes, too). --- clang/test/CodeGen/mrtd.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 clang/test/CodeGen/mrtd.c (limited to 'clang/test/CodeGen/mrtd.c') diff --git a/clang/test/CodeGen/mrtd.c b/clang/test/CodeGen/mrtd.c new file mode 100644 index 0000000..d7729a5 --- /dev/null +++ b/clang/test/CodeGen/mrtd.c @@ -0,0 +1,15 @@ +// RUN: %clang_cc1 -mrtd -triple i386-unknown-freebsd9.0 -emit-llvm -o - %s | FileCheck %s + +void baz(int arg); + +// CHECK: define x86_stdcallcc void @foo(i32 %arg) nounwind +void foo(int arg) { +// CHECK: call x86_stdcallcc i32 bitcast (i32 (...)* @bar to i32 (i32)*)( + bar(arg); +// CHECK: call x86_stdcallcc void @baz(i32 + baz(arg); +} + +// CHECK: declare x86_stdcallcc i32 @bar(...) + +// CHECK: declare x86_stdcallcc void @baz(i32) -- cgit v1.2.3