xref: /minix3/external/bsd/llvm/dist/clang/test/Frontend/ast-codegen.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang -target i386-unknown-unknown -emit-ast -o %t.ast %s
2*f4a2713aSLionel Sambuc // RUN: %clang -target i386-unknown-unknown -emit-llvm -S -o - %t.ast | FileCheck %s
3*f4a2713aSLionel Sambuc 
4*f4a2713aSLionel Sambuc // CHECK: module asm "foo"
5*f4a2713aSLionel Sambuc __asm__("foo");
6*f4a2713aSLionel Sambuc 
7*f4a2713aSLionel Sambuc // CHECK: @g0 = common global i32 0, align 4
8*f4a2713aSLionel Sambuc int g0;
9*f4a2713aSLionel Sambuc 
10*f4a2713aSLionel Sambuc // CHECK: define i32 @f0()
f0()11*f4a2713aSLionel Sambuc int f0() {
12*f4a2713aSLionel Sambuc }
13