summaryrefslogtreecommitdiffstats
path: root/test/Index/complete-access-checks-crash.cpp
blob: c7ac4d656378770237445955e17b62529f589e80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
struct Base {
protected:
  bool bar();
};
struct Derived : Base {
};

struct X {
  int foo() {
    Derived(). // RUN: c-index-test -code-completion-at=%s:10:15 %s | FileCheck %s
    // CHECK: bar{{.*}}(inaccessible)
  }
};