You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
749 B

/*
* 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.
*/
namespace anamespace {
void the_function() {}
void the_other_function() {}
} // namespace anamespace
namespace anothernamespace {
void the_function() {}
void the_other_function() {}
} // namespace anothernamespace
int main() {
anamespace::the_function();
anothernamespace::the_function();
anamespace::the_other_function();
anothernamespace::the_other_function();
{
using namespace anamespace;
the_function();
the_other_function();
}
{
using namespace anothernamespace;
the_function();
the_other_function();
}
return 0;
}