diff options
Diffstat (limited to 'test/Index/annotate-tokens-unexposed.cpp')
-rw-r--r-- | test/Index/annotate-tokens-unexposed.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/Index/annotate-tokens-unexposed.cpp b/test/Index/annotate-tokens-unexposed.cpp new file mode 100644 index 0000000000..74e04062da --- /dev/null +++ b/test/Index/annotate-tokens-unexposed.cpp @@ -0,0 +1,20 @@ +// RUN: c-index-test -test-annotate-tokens=%s:1:1:16:1 %s -target x86_64-pc-windows-msvc | FileCheck %s +class Foo +{ +public: + void step(int v); + Foo(); +}; + +void bar() +{ + // Introduce a MSInheritanceAttr node on the CXXRecordDecl for Foo. The + // existence of this attribute should not mark all cursors for tokens in + // Foo as UnexposedAttr. + &Foo::step; +} + +Foo::Foo() +{} + +// CHECK-NOT: UnexposedAttr= |