From: Douglas Gregor Date: Mon, 9 Mar 2009 23:48:53 +0000 (+0000) Subject: Add a test case that goes with the last commit X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a873ae65f8814eae6c9b8786f164ce70c645a21;p=clang Add a test case that goes with the last commit git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66510 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaTemplate/instantiation-default-3.cpp b/test/SemaTemplate/instantiation-default-3.cpp new file mode 100644 index 0000000000..b9379d6690 --- /dev/null +++ b/test/SemaTemplate/instantiation-default-3.cpp @@ -0,0 +1,21 @@ +// RUN: clang -fsyntax-only -verify %s + +template struct A { }; + +template > + struct B : U { }; + +template<> +struct A { + void foo(); +}; + +template<> +struct A { + void bar(); +}; + +void test(B *b1, B *b2) { + b1->foo(); + b2->bar(); +}