When writing a PCH file, keep track of all of the non-static,
non-inline external definitions (and tentative definitions) that are
found at the top level. The corresponding declarations are stored in a
record in the PCH file, so that they can be provided to the
ASTConsumer (via HandleTopLevelDecl) when the PCH file is read.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69005 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/PCH/external-defs.h b/test/PCH/external-defs.h
new file mode 100644
index 0000000..29345e9
--- /dev/null
+++ b/test/PCH/external-defs.h
@@ -0,0 +1,10 @@
+// Helper for external-defs.c test
+
+// Tentative definition
+int x;
+
+// FIXME: check this, once we actually serialize it
+int y = 17;
+
+// Should not show up
+static int z;