summaryrefslogtreecommitdiffstats
path: root/test/Index/index-pch.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-02-27 01:13:51 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-02-27 01:13:51 +0000
commit1ebefc72e80cc880be376a8704e6936d2746cb35 (patch)
tree7bf0c5c8322de0858a223e642ca3695dac81909e /test/Index/index-pch.cpp
parent664e860beb2550bef24fb8946192f61648a71d7f (diff)
[PCH] When deserializing an IdentifierInfo, call IdentifierInfo::RevertTokenIDToIdentifier() only when it's not already an identifier.
Fixes an assertion hit. rdar://13288735 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176148 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index/index-pch.cpp')
-rw-r--r--test/Index/index-pch.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/Index/index-pch.cpp b/test/Index/index-pch.cpp
index c8da7b2fbf..caab2d7f97 100644
--- a/test/Index/index-pch.cpp
+++ b/test/Index/index-pch.cpp
@@ -1,6 +1,8 @@
// RUN: c-index-test -write-pch %t.pch -fshort-wchar %s
-// RUN: c-index-test -index-tu %t.pch | FileCheck %s
+// RUN: env LIBCLANG_NOTHREADS=1 c-index-test -index-tu %t.pch | FileCheck %s
+// CHECK: [indexDeclaration]: kind: variable | name: wideStr
const wchar_t *wideStr = L"123";
-// CHECK: [indexDeclaration]: kind: variable | name: wideStr
+// CHECK: [indexDeclaration]: kind: struct | name: __is_void
+struct __is_void {};