aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test/epp_SUITE_data
diff options
context:
space:
mode:
authorJohn Högberg <[email protected]>2018-10-05 10:05:59 +0200
committerJohn Högberg <[email protected]>2018-10-05 11:47:57 +0200
commit16b93b98516df3fcc79a52847fa89fdda5b187c0 (patch)
treea39706139c19fa1387057b9affc5d89cce963bf3 /lib/stdlib/test/epp_SUITE_data
parent18a742fa6d52999d0ba415330ba2168caaeb1256 (diff)
downloadotp-16b93b98516df3fcc79a52847fa89fdda5b187c0.tar.gz
otp-16b93b98516df3fcc79a52847fa89fdda5b187c0.tar.bz2
otp-16b93b98516df3fcc79a52847fa89fdda5b187c0.zip
epp: Allow user to set source name independently of input file name
Note that this does *not* affect -include()'d files or the -file() directive.
Diffstat (limited to 'lib/stdlib/test/epp_SUITE_data')
-rw-r--r--lib/stdlib/test/epp_SUITE_data/source_name.erl27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/stdlib/test/epp_SUITE_data/source_name.erl b/lib/stdlib/test/epp_SUITE_data/source_name.erl
new file mode 100644
index 0000000000..71ad2dddb9
--- /dev/null
+++ b/lib/stdlib/test/epp_SUITE_data/source_name.erl
@@ -0,0 +1,27 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 2018. All Rights Reserved.
+%%
+%% Licensed under the Apache License, Version 2.0 (the "License");
+%% you may not use this file except in compliance with the License.
+%% You may obtain a copy of the License at
+%%
+%% http://www.apache.org/licenses/LICENSE-2.0
+%%
+%% Unless required by applicable law or agreed to in writing, software
+%% distributed under the License is distributed on an "AS IS" BASIS,
+%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+%% See the License for the specific language governing permissions and
+%% limitations under the License.
+%%
+%% %CopyrightEnd%
+%%
+
+-module(source_name).
+-export([ok/0]).
+
+%% Changing source name should not affect headers
+-include("bar.hrl").
+
+ok() -> ok.