// RUN: %clang_cc1 -std=gnu89 -fsyntax-only -verify %s
// RUN: %clang_cc1 -fsyntax-only -verify %s
// PR5253
// rdar://9559708 (same extension in C99 mode)
// GNU Extension: check that we can redefine an extern inline function
GNU_INLINE extern inline int
int // expected-note{{previous definition is here}}
// And now check that we can't redefine a normal function
int // expected-error{{redefinition of 'f'}}
// Check that we can redefine an extern inline function as a static function
GNU_INLINE extern inline int
static int
// Check that we ensure the types of the two definitions are the same
GNU_INLINE extern inline int // expected-note{{previous definition is here}}
int // expected-error{{conflicting types for 'h'}}