From f27e5a09a0d815b8a4814152954ff87dadfdefc0 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 2 Jun 2009 17:58:47 +0000 Subject: Import Clang, at r72732. --- test/SemaTemplate/instantiation-default-3.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/SemaTemplate/instantiation-default-3.cpp (limited to 'test/SemaTemplate/instantiation-default-3.cpp') diff --git a/test/SemaTemplate/instantiation-default-3.cpp b/test/SemaTemplate/instantiation-default-3.cpp new file mode 100644 index 0000000..521edf6 --- /dev/null +++ b/test/SemaTemplate/instantiation-default-3.cpp @@ -0,0 +1,21 @@ +// RUN: clang-cc -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(); +} -- cgit v1.1