view clang/test/CodeCompletion/accessibility-crash.cpp @ 266:00f31e85ec16 default tip

Added tag current for changeset 31d058e83c98
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 14 Oct 2023 10:13:55 +0900
parents 1f2b6ac9f198
children
line wrap: on
line source

class X {
public:
 int pub;
protected:
 int prot;
private:
 int priv;
};

class Y : public X {
  int test() {
    []() {

      // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-1):1 %s -o - \
      // RUN: | FileCheck %s
      // CHECK: priv (InBase,Inaccessible)
      // CHECK: prot (InBase)
      // CHECK: pub (InBase)
    };
  }
};