// RUN: %clang -Xclang -no-opaque-pointers -target i386-unknown-unknown -S -emit-llvm -std=gnu89 -o - %s | FileCheck %s
// RUN: %clang -Xclang -no-opaque-pointers -target i386-unknown-unknown -S -emit-llvm -fgnu89-inline -o - %s | FileCheck %s
// PR5253
// If an extern inline function is redefined, functions should call the
// redefinition.
extern inline int
int
// CHECK: call i32 @f
int
// CHECK: load i32, i32* %{{.*}}
// CHECK: add nsw i32 1, %{{.*}}
int
// CHECK: call i32 @f
// It shouldn't matter if the function was redefined static.
extern inline int
int
// CHECK: call i32 @f2
static int
// CHECK: load i32, i32* %{{.*}}
// CHECK: load i32, i32* %{{.*}}
// CHECK: mul nsw i32 %{{.*}}, %{{.*}}
int
// CHECK: call i32 @f2