initialized. Fixes PR7076.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116553
91177308-0d34-0410-b5e6-
96231b3b80d8
}
}
} else if (VDecl->isFileVarDecl()) {
- if (VDecl->getStorageClass() == SC_Extern &&
+ if (VDecl->getStorageClassAsWritten() == SC_Extern &&
(!getLangOptions().CPlusPlus ||
!Context.getBaseElementType(VDecl->getType()).isConstQualified()))
Diag(VDecl->getLocation(), diag::warn_extern_init);
}
extern "C++" using N::value;
+
+// PR7076
+extern "C" const char *Version_string = "2.9";