auto

What is the type of x after auto x = ref; where ref is an int&?

int val = 42;
int& ref = val;
auto x = ref;