blob: 8abe2c82f6c25d8668b86187177e022107cb1dfb [file] [log] [blame]
// Part of the Crubit project, under the Apache License v2.0 with LLVM
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#ifndef CRUBIT_RS_BINDINGS_FROM_CC_TEST_GOLDEN_PRIVATE_METHOD_H_
#define CRUBIT_RS_BINDINGS_FROM_CC_TEST_GOLDEN_PRIVATE_METHOD_H_
template <class T>
class Ptr {
public:
Ptr(T* ptr) : ptr_(ptr) {}
private:
T* ptr_;
};
class Outer {
private:
class Inner {
private:
int v_ = 1; // NOLINT: unused variable necessary to trigger the test case.
};
void ShouldNotBeImportedSinceItIsPrivate(Ptr<Inner> ptr) {}
};
#endif // CRUBIT_RS_BINDINGS_FROM_CC_TEST_GOLDEN_PRIVATE_METHOD_H_