summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/Inputs/preamble-with-error.h
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-08-07 21:17:33 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-08-07 21:17:33 +0000
commitacfbbd77f80c012707c6ed5ebe1a5be35778c41d (patch)
treefb6b44fc9f6c1c7f08e92f47e9ed74832b3c836a /clang/test/Index/Inputs/preamble-with-error.h
parent7af8baf678f7e9590f80d82327676aa3b43ba7a7 (diff)
downloadbcm5719-llvm-acfbbd77f80c012707c6ed5ebe1a5be35778c41d.tar.gz
bcm5719-llvm-acfbbd77f80c012707c6ed5ebe1a5be35778c41d.zip
[PCH] Fix a PCH serialization crash, with invalid code related to forward enum references.
The problem was that an enum without closing semicolon could be associated as a forward enum in an erroneous declaration, leading to the identifier being associated with the enum decl but without a declaration actually referencing it. This resulted in not having it serialized before serializing the identifier that is associated with. Also prevent the ASTUnit from querying the serialized DeclID for an invalid top-level decl; it may not have been serialized. rdar://14539667 llvm-svn: 187914
Diffstat (limited to 'clang/test/Index/Inputs/preamble-with-error.h')
-rw-r--r--clang/test/Index/Inputs/preamble-with-error.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Index/Inputs/preamble-with-error.h b/clang/test/Index/Inputs/preamble-with-error.h
new file mode 100644
index 00000000000..f840947369b
--- /dev/null
+++ b/clang/test/Index/Inputs/preamble-with-error.h
@@ -0,0 +1,3 @@
+typedef int Int;
+enum FFF
+extern Int *const www;
OpenPOWER on IntegriCloud