The example you gave is not a variable. It declares a nullary function that returns an int.
In any case, no, you cannot. This will not compile. Although you could do something like this:
1 2 3 4
namespace
{
externint x(void);
}
This basically declares an int-returning function that takes no parameters as having external linkage, but wrapping it in an anonymous namespace makes that linkage static, so it becomes completely useless. It makes no sense to do this, of course.