ast-codegen.c 346 B

12345678910111213
  1. // REQUIRES: x86-registered-target
  2. // RUN: %clang -target i386-unknown-unknown -emit-ast -o %t.ast %s
  3. // RUN: %clang -target i386-unknown-unknown -emit-llvm -S -o - %t.ast | FileCheck %s
  4. // CHECK: module asm "foo"
  5. __asm__("foo");
  6. // CHECK: @g0 = common dso_local global i32 0, align 4
  7. int g0;
  8. // CHECK: define dso_local i32 @f0()
  9. int f0() {
  10. }