Reviewed By: ddino Differential Revision: D14371054 fbshipit-source-id: eb675166bmaster
parent
f3dd99ef00
commit
96beec5e53
@ -1 +1 @@
|
||||
Subproject commit 1f77ff5f316a72aacdf9816ce36190a5d869a952
|
||||
Subproject commit 36266f6c86041896bed32ffec0637fefbc4463e0
|
@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright (c) 2019-present, Facebook, Inc.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
int globalVarInTopNs;
|
||||
|
||||
namespace {
|
||||
|
||||
int globalVarInAnonNs;
|
||||
|
||||
struct Baz {
|
||||
int fld_;
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
namespace Foo {
|
||||
|
||||
int globalVarInFoo;
|
||||
|
||||
class Bar : public Baz {
|
||||
static int classVar;
|
||||
int f(const Baz& baz) {
|
||||
label:
|
||||
return baz.fld_ + fld_ + barFld_ + classVar + globalVarInTopNs +
|
||||
globalVarInAnonNs + globalVarInFoo;
|
||||
}
|
||||
|
||||
private:
|
||||
int barFld_;
|
||||
};
|
||||
|
||||
} // namespace Foo
|
Loading…
Reference in new issue