llvm-project/clang/test/Index/complete-preamble.cpp
Douglas Gregor cda209a944 When we need the complete set of visible declarations from a
declaration context, check whether the primary context---not the
current context---has any external visible declarations. Fixes
PR13616.

llvm-svn: 162083
2012-08-17 05:26:33 +00:00

9 lines
276 B
C++

#include "complete-preamble.h"
void f() {
std::
}
// RUN: env CINDEXTEST_EDITING=1 c-index-test -code-completion-at=%s:3:8 %s -o - | FileCheck -check-prefix=CC1 %s
// CHECK-CC1: {ResultType void}{TypedText wibble}{LeftParen (}{RightParen )} (50) (parent: Namespace 'std')