llvm-project/clang/test/SemaCXX/PR9884.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
227 B
C++
Raw Normal View History

2011-05-10 22:19:13 +08:00
// RUN: %clang_cc1 -fsyntax-only -verify %s
// expected-no-diagnostics
2011-05-10 22:19:13 +08:00
class Base {
protected:
Base(int val);
};
class Derived : public Base {
public:
Derived(int val);
};
Derived::Derived(int val)
: Base( val )
{
}