summaryrefslogtreecommitdiffstats
path: root/test/Frontend/ast-codegen.c
blob: bd8a20adb69b3539989a666b94391b5a267737e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
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() {
}
OpenPOWER on IntegriCloud