From: Rafael Espindola Date: Tue, 10 May 2011 14:19:13 +0000 (+0000) Subject: Add test for PR9884. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d6dd72e79a847e8eb4a72f108362664b237c44b;p=clang Add test for PR9884. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131127 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaCXX/PR9884.cpp b/test/SemaCXX/PR9884.cpp new file mode 100644 index 0000000000..ab883c4062 --- /dev/null +++ b/test/SemaCXX/PR9884.cpp @@ -0,0 +1,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 ) +{ +}