[x86] Teach the shrink-wrapping hooks to do the proper thing with Win64.
[oota-llvm.git] / unittests / ADT / IntrusiveRefCntPtrTest.cpp
index a74e05e7b2467fab0133cd0b6dc4e7c7039aa268..c67ec130912de43cf67cf35c0d551e27af10fec6 100644 (file)
 #include "llvm/ADT/IntrusiveRefCntPtr.h"
 #include "gtest/gtest.h"
 
-namespace llvm {
-
-struct VirtualRefCounted : public RefCountedBaseVPTR {
-  virtual void f();
+namespace {
+struct VirtualRefCounted : public llvm::RefCountedBaseVPTR {
+  virtual void f() {}
 };
+}
 
-// Provide out-of-line definition to prevent weak vtable.
-void VirtualRefCounted::f() {}
+namespace llvm {
 
 // Run this test with valgrind to detect memory leaks.
 TEST(IntrusiveRefCntPtr, RefCountedBaseVPTRCopyDoesNotLeak) {