minix/external/bsd/llvm/dist/clang/test/Frontend/ast-codegen.c
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

12 lines
291 B
C

// RUN: %clang -target i386-unknown-unknown -emit-ast -o %t.ast %s
// RUN: %clang -target i386-unknown-unknown -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() {
}