diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-01-24 01:43:01 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-01-24 01:43:01 +0900 |
| commit | c780cbb6acd0e0526f2d305138190392bdc8cdd7 (patch) | |
| tree | df1edba6eb5778a00e1f4c8a5051414d5bb37e71 /tests/undef.sh | |
| parent | d179d944c0633d3aa2420009335791b115f67052 (diff) | |
| download | ducc-c780cbb6acd0e0526f2d305138190392bdc8cdd7.tar.gz ducc-c780cbb6acd0e0526f2d305138190392bdc8cdd7.tar.zst ducc-c780cbb6acd0e0526f2d305138190392bdc8cdd7.zip | |
refactor: organize test files
Diffstat (limited to 'tests/undef.sh')
| -rw-r--r-- | tests/undef.sh | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/tests/undef.sh b/tests/undef.sh deleted file mode 100644 index 27d03c6..0000000 --- a/tests/undef.sh +++ /dev/null @@ -1,33 +0,0 @@ -cat <<'EOF' > expected -int printf (); - -int main () { - - printf ( A is defined\n); - - - printf ( A is undefined\n); -} -EOF - -test_cpp <<'EOF' -int printf(); - -int main() { -#define A 1 - -#ifdef A - printf("A is defined\n"); -#else - printf("A is undefined\n"); -#endif - -#undef A - -#ifdef A - printf("A is defined\n"); -#else - printf("A is undefined\n"); -#endif -} -EOF |
