X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2Ftest%2FPortabilityTest.cpp;h=923c2391cbdcc46590fbbfce8e9f4113c5dd5a36;hb=89e6ee60da8c157f32fcc6b8ce727c292de77e15;hp=ca319c3594a1c491adf6bd0c9dcee79d86e44562;hpb=ce64f0f685111ac24c7a321ea56d0c3524621df1;p=folly.git diff --git a/folly/test/PortabilityTest.cpp b/folly/test/PortabilityTest.cpp index ca319c35..923c2391 100644 --- a/folly/test/PortabilityTest.cpp +++ b/folly/test/PortabilityTest.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2014 Facebook, Inc. + * Copyright 2015 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,7 +28,7 @@ class Base { class Derived : public Base { public: - virtual int foo() const FOLLY_FINAL { return 2; } + int foo() const final { return 2; } }; // A compiler that supports final will likely inline the call to p->foo() @@ -42,4 +42,3 @@ TEST(Portability, Final) { EXPECT_EQ(3, fooBase(p.get())); EXPECT_EQ(3, fooDerived(p.get())); } -