llvm-for-llvmta/tools/clang/test/SemaCXX/PR9884.cpp

19 lines
227 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -fsyntax-only -verify %s
// expected-no-diagnostics
class Base {
protected:
Base(int val);
};
class Derived : public Base {
public:
Derived(int val);
};
Derived::Derived(int val)
: Base( val )
{
}