testsuite/systemtap.context/usymfileline.cxx
raw| 1 | #include <algorithm> |
| 2 | #include <string> |
| 3 | |
| 4 | bool test_method() { |
| 5 | std::string foo("foobar"); |
| 6 | std::string::iterator it = std::find(foo.begin(), foo.end(), 'b'); |
| 7 | return it == foo.begin() + 3; |
| 8 | } |
| 9 | |
| 10 | int main(int argc, char **argv) { |
| 11 | if (test_method()) { |
| 12 | return 0; |
| 13 | } |
| 14 | return 1; |
| 15 | } |