/* * Copyright (c) 2018-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. */ #include #include #include using namespace std; enum VALUE { VALUE1, VALUE2, }; vector global_v = {1, 2, 3}; struct A { int a; int b; }; int f(int x) { return x + 1; } int test(int x) { A a{1, 2}; pair p = {3, 4}; vector v1; vector v2{1}; // const static vector v3 = {1, 2}; vector v4 = {VALUE1, VALUE2}; // const vector v5 = {f(1), f(2), 3}; // const vector v6 = {f(x), 2, 3}; map m1{{"a", 1}, {"b", 2}}; return a.a + p.first; }