neither was inline. Fixes bug introduced in r135377.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135380
91177308-0d34-0410-b5e6-
96231b3b80d8
return false;
if (getLinkage() != ExternalLinkage || isInlineSpecified())
return false;
- const FunctionDecl *InlineDefinition = 0;
- if (hasBody(InlineDefinition))
- return InlineDefinition->isInlineDefinitionExternallyVisible();
+ const FunctionDecl *Definition = 0;
+ if (hasBody(Definition))
+ return Definition->isInlined() &&
+ Definition->isInlineDefinitionExternallyVisible();
return false;
}
__inline int test6() { return 0; }
extern int test6();
+
+
+// No PR#, but this once crashed clang in C99 mode due to buggy extern inline
+// redeclaration detection.
+void test7() { }
+void test7();