From 222e2a7620e6520ffaf4fc4e69d79c18da31542e Mon Sep 17 00:00:00 2001 From: "Zancanaro; Carlo" Date: Mon, 24 Sep 2012 09:58:17 +1000 Subject: Add the clang library to the repo (with some of my changes, too). --- clang/test/CodeGenCXX/virt-template-vtable.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 clang/test/CodeGenCXX/virt-template-vtable.cpp (limited to 'clang/test/CodeGenCXX/virt-template-vtable.cpp') diff --git a/clang/test/CodeGenCXX/virt-template-vtable.cpp b/clang/test/CodeGenCXX/virt-template-vtable.cpp new file mode 100644 index 0000000..25736fd --- /dev/null +++ b/clang/test/CodeGenCXX/virt-template-vtable.cpp @@ -0,0 +1,22 @@ +// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s + +template class A { +public: + A() {} + virtual void a() {} +}; +class B : A { + B(); +}; +B::B() {} + +template class A; + +extern template class A; +template class A; + + +// CHECK: @_ZTV1B = linkonce_odr unnamed_addr constant +// CHECK: @_ZTV1AIlE = weak_odr unnamed_addr constant +// CHECK: @_ZTV1AIsE = weak_odr unnamed_addr constant +// CHECK: @_ZTV1AIiE = linkonce_odr unnamed_addr constant -- cgit v1.2.3