aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test/epp_SUITE_data
diff options
context:
space:
mode:
Diffstat (limited to 'lib/stdlib/test/epp_SUITE_data')
-rw-r--r--lib/stdlib/test/epp_SUITE_data/mac.erl46
-rw-r--r--lib/stdlib/test/epp_SUITE_data/mac2.erl38
-rw-r--r--lib/stdlib/test/epp_SUITE_data/mac3.erl36
-rw-r--r--lib/stdlib/test/epp_SUITE_data/pmod.erl25
-rw-r--r--lib/stdlib/test/epp_SUITE_data/variable_1.erl24
-rw-r--r--lib/stdlib/test/epp_SUITE_data/variable_1_include.hrl19
-rw-r--r--lib/stdlib/test/epp_SUITE_data/variable_1_include_dir.hrl19
7 files changed, 207 insertions, 0 deletions
diff --git a/lib/stdlib/test/epp_SUITE_data/mac.erl b/lib/stdlib/test/epp_SUITE_data/mac.erl
new file mode 100644
index 0000000000..e3329d76f9
--- /dev/null
+++ b/lib/stdlib/test/epp_SUITE_data/mac.erl
@@ -0,0 +1,46 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 1998-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%
+-module(mac).
+
+-compile(export_all).
+
+-define(A, ?A + ?A).
+
+-define(a, ?a + ?a).
+-define(b, x + ?c(2)).
+-define(c(Y), x + Y).
+-define(d(X), X X).
+
+bar() ->
+ 1 ?d(?d(?d(?d(?d(?d(?d(+1))))))).
+
+foo1() ->
+ ?a.
+
+foo2() ->
+ ?b.
+
+foo3() ->
+ ?A.
+
+-define( this, ?that).
+-define( that, ?this).
+
+talkAbout()->
+ ?this==?that.
diff --git a/lib/stdlib/test/epp_SUITE_data/mac2.erl b/lib/stdlib/test/epp_SUITE_data/mac2.erl
new file mode 100644
index 0000000000..0547cdb8b3
--- /dev/null
+++ b/lib/stdlib/test/epp_SUITE_data/mac2.erl
@@ -0,0 +1,38 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 1998-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%
+-ifndef(p).
+-define(p, 1).
+-endif.
+
+-ifndef('p').
+-define('p', 2).
+-endif.
+
+-ifndef(P).
+-define(P, 3).
+-endif.
+
+-ifndef('P').
+-define('P', 4).
+-endif.
+
+-plupp({?p,
+ ?'p',
+ ?P,
+ ?'P'}).
diff --git a/lib/stdlib/test/epp_SUITE_data/mac3.erl b/lib/stdlib/test/epp_SUITE_data/mac3.erl
new file mode 100644
index 0000000000..e5fb964a91
--- /dev/null
+++ b/lib/stdlib/test/epp_SUITE_data/mac3.erl
@@ -0,0 +1,36 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 1998-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%
+-l(?LINE).
+
+-f(?FILE).
+
+-machine1(?MACHINE).
+
+-module(mac3).
+
+-m(?MODULE).
+-ms(?MODULE_STRING).
+
+-ifdef(JAM).
+-machine2(jam).
+-endif.
+
+-ifdef(BEAM).
+-machine2(beam).
+-endif.
diff --git a/lib/stdlib/test/epp_SUITE_data/pmod.erl b/lib/stdlib/test/epp_SUITE_data/pmod.erl
new file mode 100644
index 0000000000..a4d4843a69
--- /dev/null
+++ b/lib/stdlib/test/epp_SUITE_data/pmod.erl
@@ -0,0 +1,25 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2004-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%
+-module(pmod, [Props]).
+
+-export([update/1]).
+
+update(X) ->
+ ?MODULE:new(X).
+
diff --git a/lib/stdlib/test/epp_SUITE_data/variable_1.erl b/lib/stdlib/test/epp_SUITE_data/variable_1.erl
new file mode 100644
index 0000000000..b178f519a9
--- /dev/null
+++ b/lib/stdlib/test/epp_SUITE_data/variable_1.erl
@@ -0,0 +1,24 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2002-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%
+-module(variable_1).
+
+-include("$VAR/variable_1_include.hrl").
+-include_lib("$VAR/variable_1_include_dir.hrl").
+
+-a({?variable_1_var1, ?variable_1_var2}).
diff --git a/lib/stdlib/test/epp_SUITE_data/variable_1_include.hrl b/lib/stdlib/test/epp_SUITE_data/variable_1_include.hrl
new file mode 100644
index 0000000000..039d72aa49
--- /dev/null
+++ b/lib/stdlib/test/epp_SUITE_data/variable_1_include.hrl
@@ -0,0 +1,19 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2002-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%
+-define(variable_1_var1, value1).
diff --git a/lib/stdlib/test/epp_SUITE_data/variable_1_include_dir.hrl b/lib/stdlib/test/epp_SUITE_data/variable_1_include_dir.hrl
new file mode 100644
index 0000000000..727ccd421b
--- /dev/null
+++ b/lib/stdlib/test/epp_SUITE_data/variable_1_include_dir.hrl
@@ -0,0 +1,19 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2002-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%
+-define(variable_1_var2, value2).