// RUN: %clang_cc1 -Wno-strict-prototypes -O1 -disable-llvm-optzns -std=gnu89 -triple i386-apple-darwin9 -emit-llvm %s -o - | FileCheck -check-prefix CHECK-GNU89 %s
// RUN: %clang_cc1 -Wno-strict-prototypes -O1 -disable-llvm-optzns -std=c99 -triple i386-apple-darwin9 -emit-llvm %s -o - | FileCheck -check-prefix CHECK-C99 %s
// CHECK-GNU89-LABEL: define{{.*}} i32 @f0()
// CHECK-C99-LABEL: define{{.*}} i32 @f0()
int ;
int
// CHECK-GNU89-LABEL: define{{.*}} i32 @f1()
// CHECK-C99-LABEL: define{{.*}} i32 @f1()
inline int ;
int
// CHECK-GNU89-LABEL: define{{.*}} i32 @f2()
// CHECK-C99-LABEL: define{{.*}} i32 @f2()
int ;
inline int
// CHECK-GNU89-LABEL: define{{.*}} i32 @f3()
// CHECK-C99-LABEL: define{{.*}} i32 @f3()
extern inline int ;
int
// CHECK-GNU89-LABEL: define{{.*}} i32 @f5()
// CHECK-C99-LABEL: define{{.*}} i32 @f5()
extern inline int ;
inline int
// CHECK-GNU89-LABEL: define{{.*}} i32 @f6()
// CHECK-C99-LABEL: define{{.*}} i32 @f6()
inline int ;
extern inline int
// CHECK-GNU89-LABEL: define{{.*}} i32 @f7()
// CHECK-C99-LABEL: define{{.*}} i32 @f7()
extern inline int ;
extern int
// CHECK-GNU89-LABEL: define{{.*}} i32 @fA()
inline int
// CHECK-GNU89-LABEL: define{{.*}} i32 @fB()
inline int
// CHECK-GNU89-LABEL: define available_externally i32 @f4()
// CHECK-C99-LABEL: define{{.*}} i32 @f4()
int ;
extern inline int
// CHECK-GNU89-LABEL: define available_externally i32 @f8()
// CHECK-C99-LABEL: define{{.*}} i32 @f8()
extern int ;
extern inline int
// CHECK-GNU89-LABEL: define available_externally i32 @f9()
// CHECK-C99-LABEL: define{{.*}} i32 @f9()
extern inline int ;
extern inline int
// CHECK-C99-LABEL: define available_externally i32 @fA()
// CHECK-C99-LABEL: define{{.*}} i32 @fB()
int
int ;