forked from OSchip/llvm-project
18 lines
200 B
C++
18 lines
200 B
C++
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
||
|
class Base {
|
||
|
protected:
|
||
|
Base(int val);
|
||
|
};
|
||
|
|
||
|
|
||
|
class Derived : public Base {
|
||
|
public:
|
||
|
Derived(int val);
|
||
|
};
|
||
|
|
||
|
|
||
|
Derived::Derived(int val)
|
||
|
: Base( val )
|
||
|
{
|
||
|
}
|