xref: /freebsd/contrib/atf/atf-c++/detail/version_helper.cpp (revision 8f0ea33f2bbf3a6aa80235f0a02fa5f2780c2b17)
11a61beb0SJulio Merino // Copyright 2014 Google Inc.
21a61beb0SJulio Merino // All rights reserved.
31a61beb0SJulio Merino //
41a61beb0SJulio Merino // Redistribution and use in source and binary forms, with or without
51a61beb0SJulio Merino // modification, are permitted provided that the following conditions are
61a61beb0SJulio Merino // met:
71a61beb0SJulio Merino //
81a61beb0SJulio Merino // * Redistributions of source code must retain the above copyright
91a61beb0SJulio Merino //   notice, this list of conditions and the following disclaimer.
101a61beb0SJulio Merino // * Redistributions in binary form must reproduce the above copyright
111a61beb0SJulio Merino //   notice, this list of conditions and the following disclaimer in the
121a61beb0SJulio Merino //   documentation and/or other materials provided with the distribution.
131a61beb0SJulio Merino // * Neither the name of Google Inc. nor the names of its contributors
141a61beb0SJulio Merino //   may be used to endorse or promote products derived from this software
151a61beb0SJulio Merino //   without specific prior written permission.
161a61beb0SJulio Merino //
171a61beb0SJulio Merino // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
181a61beb0SJulio Merino // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
191a61beb0SJulio Merino // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
201a61beb0SJulio Merino // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
211a61beb0SJulio Merino // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
221a61beb0SJulio Merino // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
231a61beb0SJulio Merino // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
241a61beb0SJulio Merino // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
251a61beb0SJulio Merino // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
261a61beb0SJulio Merino // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
271a61beb0SJulio Merino // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
281a61beb0SJulio Merino 
291a61beb0SJulio Merino #if defined(HAVE_CONFIG_H)
30*0677dfd1SJulio Merino #include "config.h"
311a61beb0SJulio Merino #endif
321a61beb0SJulio Merino 
331a61beb0SJulio Merino #include <cstdlib>
341a61beb0SJulio Merino #include <iostream>
351a61beb0SJulio Merino 
361a61beb0SJulio Merino int
main(void)371a61beb0SJulio Merino main(void)
381a61beb0SJulio Merino {
391a61beb0SJulio Merino     std::cout << PACKAGE_VERSION << "\n";
401a61beb0SJulio Merino     return EXIT_SUCCESS;
411a61beb0SJulio Merino }
42