/*
- * 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.
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()
EXPECT_EQ(3, fooBase(p.get()));
EXPECT_EQ(3, fooDerived(p.get()));
}
-