aboutsummaryrefslogtreecommitdiff
path: root/tests/cc
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-08-02 15:18:25 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-08-02 15:18:25 +0200
commit083743602a998c7618f65fc214bdbc1ed1915e55 (patch)
treeec8a3441ad232e31591a8b3ec6ecbe459b495b9c /tests/cc
parentd5ad01a48ac4c7c69995a58a3c198630df904419 (diff)
Change cc.preprocessed to {c,cxx}.preprocessed
Diffstat (limited to 'tests/cc')
-rw-r--r--tests/cc/preprocessed/buildfile2
-rw-r--r--tests/cc/preprocessed/testscript14
2 files changed, 8 insertions, 8 deletions
diff --git a/tests/cc/preprocessed/buildfile b/tests/cc/preprocessed/buildfile
index d812867..ac6bcdf 100644
--- a/tests/cc/preprocessed/buildfile
+++ b/tests/cc/preprocessed/buildfile
@@ -2,7 +2,7 @@
# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
# license : MIT; see accompanying LICENSE file
-# Test cc.preprocessed logic.
+# Test {c, cxx}.preprocessed logic.
#
./: test{testscript} $b
diff --git a/tests/cc/preprocessed/testscript b/tests/cc/preprocessed/testscript
index b429853..fb69e65 100644
--- a/tests/cc/preprocessed/testscript
+++ b/tests/cc/preprocessed/testscript
@@ -61,8 +61,8 @@ cat <<EOI >=test.cxx &!test.cxx;
int main () {return TEST_VALUE;}
EOI
$* --verbose 5 &test* <<EOI 2>&1 | $filter >>EOO
- cc.preprocessed = includes
- cc.poptions += -DTEST_VALUE=0
+ cxx.preprocessed = includes
+ cxx.poptions += -DTEST_VALUE=0
exe{test}: cxx{test}
EOI
modules test
@@ -76,8 +76,8 @@ cat <<EOI >=test.cxx &!test.cxx;
int main () {return TEST_VALUE;}
EOI
$* --verbose 5 &test* <<EOI 2>&1 | $filter >>EOO
- cc.preprocessed = modules
- cc.poptions += -DTEST_VALUE=0
+ cxx.preprocessed = modules
+ cxx.poptions += -DTEST_VALUE=0
exe{test}: cxx{test}
EOI
modules test
@@ -95,7 +95,7 @@ cat <<EOI >=test.cxx &!test.cxx;
#endif
EOI
$* &test* <<EOI 2>>EOE != 0
- cc.preprocessed = modules
+ cxx.preprocessed = modules
exe{test}: cxx{test}
EOI
test.cxx: error: modules support not enabled/available
@@ -116,8 +116,8 @@ cat <<EOI >=test.cxx &!test.cxx;
in () {}
EOI
$* --verbose &test* 5 <<EOI 2>&1 | $filter >>EOO
- cc.preprocessed = all
- cc.poptions += -Dmain=foo
+ cxx.preprocessed = all
+ cxx.poptions += -Dmain=foo
exe{test}: cxx{test}
EOI
modules test