#include using namespace std; namespace { extern int foo; } int main() { cout << "foo = " << foo << endl; return 0; }