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/Frontend/ast-codegen.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 clang/test/Frontend/ast-codegen.c (limited to 'clang/test/Frontend/ast-codegen.c') diff --git a/clang/test/Frontend/ast-codegen.c b/clang/test/Frontend/ast-codegen.c new file mode 100644 index 0000000..b5b2157 --- /dev/null +++ b/clang/test/Frontend/ast-codegen.c @@ -0,0 +1,12 @@ +// RUN: %clang -emit-ast -o %t.ast %s +// RUN: %clang -emit-llvm -S -o - %t.ast | FileCheck %s + +// CHECK: module asm "foo" +__asm__("foo"); + +// CHECK: @g0 = common global i32 0, align 4 +int g0; + +// CHECK: define i32 @f0() +int f0() { +} -- cgit v1.2.3