Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/src/cpphs/tests/ross

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


/* 1. C comments should be deleted by the preprocessor */

/* 2. repeated expansion */
#define FOO 4
#define BAR FOO

f = BAR

/* 3. continuation lines in macros shouldn't give newlines */
#define LONG_MACRO \
{ putStr "Hello "; \
  putStrLn "World" }

g = do LONG_MACRO

/* 4. projection macros */
#define MACRO(x) x

h = MACRO(FOO)

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.