freebsd-src/contrib/unifdef/tests/multinewline.expout
Dag-Erling Smørgrav fb3ef04d20 Add 'contrib/unifdef/' from commit '0da44885831dc0a43c4ca6ff04a2430993cc0a80'
git-subtree-dir: contrib/unifdef
git-subtree-mainline: 3b7ffacdee
git-subtree-split: 0da4488583
2023-08-21 19:51:03 +02:00

40 lines
552 B
Plaintext

--- mcrlf.c~
+++ mcrlf.c
@@ -1,14 +1,4 @@
-#if F1
int f1() { return 0; }
-#elif F2
-int f2() { return 0; }
-#elif F3
-int f3() { return 0; }
-#elif F4
-int f4() { return 0; }
-#else
-int f() { return 0; }
-#endif
\/
/\
comment
--- mif1.c~
+++ mif1.c
@@ -5,18 +5,12 @@
#include <stdio.h>
#include <stdlib.h>
-#if FOO
int foo() { return 0; }
-#else
-#error FOO not defined
-#endif
#if BAR
int foo() { return 0; }
-#elif FOO
-int bar() { return 0; }
#else
-#error FOO not defined
+int bar() { return 0; }
#endif
int main()