// RUN: %clang_cc1 -emit-llvm -triple i386-linux-gnu %s -o - | FileCheck %s
// RUN: %clang_cc1 -x c -emit-pch -o %t %s
// RUN: %clang_cc1 -include-pch %t %s -emit-llvm -o - | FileCheck %s
// TODO: for "foo" and "bar", "after" is not added as it appears "after" the first use or definition respectively. There might be a way to allow that.
// CHECK: define{{.*}} void @bar() #0
// CHECK: define{{.*}} void @baz() #1
// CHECK: declare{{.*}} void @foo() #2
// CHECK: attributes #0
// CHECK-SAME: "llvm.assume"="bar:before1,bar:before2,bar:before3,bar:def1,bar:def2"
// CHECK: attributes #1
// CHECK-SAME: "llvm.assume"="baz:before1,baz:before2,baz:before3,baz:def1,baz:def2,baz:after"
// CHECK: attributes #2
// CHECK-SAME: "llvm.assume"="foo:before1,foo:before2,foo:before3"
/// foo: declarations only
void ;
void
;
/// baz: static function declarations and a definition
static void ;
static void
;
// Definition
static void
static void ;
/// bar: external function declarations and a definition
void ;
void
;
// Definition
void
void ;
/// back to foo
void ;