Due to missing handling of address space tokens in parsing code of C++ we were unable to parse declarations that start from an address space keyword. For example we would get an error:
test.cl:2:1: error: expected expression __global int * arg_glob;
No idea if there are some more cases missing but this patch at least fixes basic variable and function argument declaration parsing.
I enable address space test but part of it still can't run correctly in C++ mode.