summaryrefslogtreecommitdiff
path: root/tests/cxxnoc.test
blob: 558040d278536ba44fd62a5aae382c34e442e5e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /bin/sh

# Test to make sure pure C++ sources don't include C-specific code.

. $srcdir/defs || exit 1

cat >> configure.in << 'END'
AC_PROG_CXX
END

cat > Makefile.am << 'END'
sbin_PROGRAMS = anonymous
anonymous_SOURCES = doe.C jane.C
END

: > doe.C
: > jane.C

$AUTOMAKE || exit 1

grep CC Makefile.in | grep -v MKDEP && exit 1
exit 0