aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Frontend/ast-codegen.c
blob: 2e2e3d360dd177b2d4456b7d34043abdb02903c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// REQUIRES: x86-registered-target
// 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 = dso_local global i32 0, align 4
int g0;

// CHECK: define dso_local void @f0()
void f0(void) {
}