X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2Ftest%2FPortabilityTest.cpp;h=8ff47aa096fb4ca3f605c6b8cf8cadbf7f324475;hb=26b139fc3520828f080d459b0f8cbd271cab7a89;hp=f03d63b9a1617abf5aac42d5154b7c0830a01b28;hpb=5c77fedbef46995a71ffa268c9fcaf49efddd01b;p=folly.git diff --git a/folly/test/PortabilityTest.cpp b/folly/test/PortabilityTest.cpp index f03d63b9..8ff47aa0 100644 --- a/folly/test/PortabilityTest.cpp +++ b/folly/test/PortabilityTest.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2013 Facebook, Inc. + * Copyright 2016 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "folly/Portability.h" +#include #include @@ -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())); } -