diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-11-07 18:53:57 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-11-07 18:53:57 +0000 |
commit | 61d63d0fd7b3ebe3dc5a4d09c8adfd2bf28e93d3 (patch) | |
tree | b7c800d9f27fbb74e121da405aa9f652e00e2a3a /clang/test/Index/reparse-instantiate.cpp | |
parent | 988ac00abdfcc7b8e486e77b67de408e9ebbd096 (diff) | |
download | bcm5719-llvm-61d63d0fd7b3ebe3dc5a4d09c8adfd2bf28e93d3.tar.gz bcm5719-llvm-61d63d0fd7b3ebe3dc5a4d09c8adfd2bf28e93d3.zip |
ASTConsumer::handleTopLevelDecl will end up getting called for
function template instantiations. Fixes <rdar://problem/10398005> / PR11312.
llvm-svn: 143984
Diffstat (limited to 'clang/test/Index/reparse-instantiate.cpp')
-rw-r--r-- | clang/test/Index/reparse-instantiate.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Index/reparse-instantiate.cpp b/clang/test/Index/reparse-instantiate.cpp new file mode 100644 index 00000000000..84e58605c48 --- /dev/null +++ b/clang/test/Index/reparse-instantiate.cpp @@ -0,0 +1,7 @@ +int main() +{ + return 0; +} + +// RUN: c-index-test -write-pch %t.pch -fno-delayed-template-parsing -x c++-header %S/Inputs/reparse-instantiate.h +// RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source-reparse 5 local -fno-delayed-template-parsing -I %S/Inputs -include %t %s |