Debian Codegraph @

cmake/cxx_tests/have_string_push_back.cpp

raw
1 // DESCRIPTION
2 //
3 // Test to check whether the implementation of the C++ library provides the method
4 // std::string::push_back (char), define HAVE_STRING_PUSH_BACK.
5 // In sync with AC_CXX_HAVE_STRING_PUSH_BACK (2008-04-12).
6 //
7 // COPYLEFT
8 //
9 // Copyright (c) 2009 Theo Papadopoulo <[email protected]>
10 // Copyright (c) 2008 Jan Langer <[email protected]>
11 //
12 // Copying and distribution of this file, with or without modification, are
13 // permitted in any medium without royalty provided the copyright notice
14 // and this notice are preserved.
15
16 #include <string>
17 using namespace std;
18
19 int main() {
20 string message;
21 message.push_back('a');
22 return 0;
23 }