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