diff options
Diffstat (limited to 'tests/test_ifdef_ifndef.sh')
| -rw-r--r-- | tests/test_ifdef_ifndef.sh | 39 |
1 files changed, 30 insertions, 9 deletions
diff --git a/tests/test_ifdef_ifndef.sh b/tests/test_ifdef_ifndef.sh index f59b87b..683a1dc 100644 --- a/tests/test_ifdef_ifndef.sh +++ b/tests/test_ifdef_ifndef.sh @@ -1,10 +1,21 @@ cat <<'EOF' > expected -__ducc__ is defined. -A is defined. -B is undefined. +int printf (); + + +int main () { + + printf ( __ducc__ is defined.\n); + + printf ( A is defined.\n); + + printf ( B is undefined.\n); + + + return 0; +} EOF -test_diff <<'EOF' +test_cpp <<'EOF' int printf(); #define A 123 @@ -36,12 +47,23 @@ int main() { EOF cat <<'EOF' > expected -__ducc__ is defined. -A is defined. -B is undefined. +int printf (); + + +int main () { + + printf ( __ducc__ is defined.\n); + + printf ( A is defined.\n); + + printf ( B is undefined.\n); + + + return 0; +} EOF -test_diff <<'EOF' +test_cpp <<'EOF' int printf(); #define A 123 @@ -71,4 +93,3 @@ int main() { return 0; } EOF - |
