Create test for finding C++ keywords in public header files (#449016).
2007-06-26 Mathias Hasselmann <mathias.hasselmann@gmx.de> * ChangeLog, configure.in, tests/Makefile.am, tests/autotestkeywords.cc: Create test for finding C++ keywords in public header files (#449016). svn path=/trunk/; revision=18243
This commit is contained in:
committed by
Mathias Hasselmann
parent
cbde735c97
commit
dac4d35211
@ -1,3 +1,9 @@
|
|||||||
|
2007-06-26 Mathias Hasselmann <mathias.hasselmann@gmx.de>
|
||||||
|
|
||||||
|
* ChangeLog, configure.in, tests/Makefile.am,
|
||||||
|
tests/autotestkeywords.cc: Create test for finding
|
||||||
|
C++ keywords in public header files (#449016).
|
||||||
|
|
||||||
2007-06-26 Kristian Rietveld <kris@imendio.com>
|
2007-06-26 Kristian Rietveld <kris@imendio.com>
|
||||||
|
|
||||||
* gtk/gtktooltips.h: remove the deprecation macros for now to fix
|
* gtk/gtktooltips.h: remove the deprecation macros for now to fix
|
||||||
|
|||||||
11
configure.in
11
configure.in
@ -135,6 +135,17 @@ dnl Initialize libtool
|
|||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
AM_DISABLE_STATIC
|
AM_DISABLE_STATIC
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl Check for a working C++ compiler, but do not bail out, if none is found.
|
||||||
|
dnl We use this for an automated test for C++ header correctness.
|
||||||
|
dnl
|
||||||
|
AC_CHECK_PROGS(CXX, [$CCC c++ g++ gcc CC cxx cc++ cl], gcc)
|
||||||
|
AC_LANG_SAVE
|
||||||
|
AC_LANG_CPLUSPLUS
|
||||||
|
AC_TRY_COMPILE(,[class a { int b; } c;], ,CXX=)
|
||||||
|
AM_CONDITIONAL(HAVE_CXX, test "$CXX" != "")
|
||||||
|
AC_LANG_RESTORE
|
||||||
|
|
||||||
if test "$os_win32" = "yes"; then
|
if test "$os_win32" = "yes"; then
|
||||||
if test x$enable_static = xyes -o x$enable_static = x; then
|
if test x$enable_static = xyes -o x$enable_static = x; then
|
||||||
AC_MSG_WARN([Disabling static library build, must build as DLL on Windows.])
|
AC_MSG_WARN([Disabling static library build, must build as DLL on Windows.])
|
||||||
|
|||||||
@ -26,8 +26,13 @@ endif
|
|||||||
|
|
||||||
TESTS = floatingtest buildertest
|
TESTS = floatingtest buildertest
|
||||||
|
|
||||||
|
if HAVE_CXX
|
||||||
|
TESTS += autotestkeywords
|
||||||
|
endif
|
||||||
|
|
||||||
noinst_PROGRAMS = \
|
noinst_PROGRAMS = \
|
||||||
autotestfilechooser \
|
autotestfilechooser \
|
||||||
|
autotestkeywords \
|
||||||
floatingtest \
|
floatingtest \
|
||||||
buildertest \
|
buildertest \
|
||||||
simple \
|
simple \
|
||||||
@ -90,6 +95,8 @@ noinst_PROGRAMS = \
|
|||||||
testtooltips \
|
testtooltips \
|
||||||
testvolumebutton
|
testvolumebutton
|
||||||
|
|
||||||
|
autotestkeywords_SOURCES = autotestkeywords.cc
|
||||||
|
|
||||||
autotestfilechooser_DEPENDENCIES = $(TEST_DEPS)
|
autotestfilechooser_DEPENDENCIES = $(TEST_DEPS)
|
||||||
simple_DEPENDENCIES = $(TEST_DEPS)
|
simple_DEPENDENCIES = $(TEST_DEPS)
|
||||||
floatingtest_DEPENDENCIES = $(TEST_DEPS)
|
floatingtest_DEPENDENCIES = $(TEST_DEPS)
|
||||||
|
|||||||
2
tests/autotestkeywords.cc
Normal file
2
tests/autotestkeywords.cc
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#include <gtk/gtk.h>
|
||||||
|
int main() { return 0; }
|
||||||
Reference in New Issue
Block a user