summaryrefslogtreecommitdiff
path: root/clang/test/SemaCXX/PR9884.cpp
blob: ab883c4062c9038a1e39ceaafc1be1851a80a4d2 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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 )
{
}