Debian Codegraph @

gcc/testsuite/gm2/examples/cpp/pass/hello.mod

raw
1 (* Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
2 2010
3 Free Software Foundation, Inc. *)
4 (* This file is part of GNU Modula-2.
5
6 GNU Modula-2 is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 3, or (at your option) any later
9 version.
10
11 GNU Modula-2 is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 for more details.
15
16 You should have received a copy of the GNU General Public License along
17 with gm2; see the file COPYING. If not, write to the Free Software
18 Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *)
19
20 MODULE hello ;
21
22 #define HELLO "Hello world"
23 #define TRUE (1==1)
24
25 FROM StrIO IMPORT WriteString, WriteLn ;
26
27
28 BEGIN
29 #if defined(TRUE)
30 WriteString(HELLO) ; WriteLn
31 #else
32 # error "cpp was not called"
33 #endif
34 END hello.