1 class foo { 2 public: 3 template <class T> T func(T x) const { 4 return x+2; //% self.expect("expr 2+3", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["5"]) 5 } 6 }; 7 8 int i; 9 10 int main() { 11 return foo().func(i); 12 } 13