aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test/pmod_SUITE_data
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2010-02-17 14:37:25 +0000
committerErlang/OTP <[email protected]>2010-02-17 14:37:25 +0000
commit91de9d0670c6fe1cff08cefa6e1c396effba47b8 (patch)
treebbd88dc451354327b8ab7d3b1c16f54c7994b662 /lib/compiler/test/pmod_SUITE_data
parentf6ff2d87c62fd56b9f948586b84b9f1a3f69fd08 (diff)
downloadotp-91de9d0670c6fe1cff08cefa6e1c396effba47b8.tar.gz
otp-91de9d0670c6fe1cff08cefa6e1c396effba47b8.tar.bz2
otp-91de9d0670c6fe1cff08cefa6e1c396effba47b8.zip
OTP-8447 Bit string comprehensions can now be used in parameterized
modules. (Thanks to Jebu Ittiachen.)
Diffstat (limited to 'lib/compiler/test/pmod_SUITE_data')
-rw-r--r--lib/compiler/test/pmod_SUITE_data/pmod_basic.erl17
1 files changed, 12 insertions, 5 deletions
diff --git a/lib/compiler/test/pmod_SUITE_data/pmod_basic.erl b/lib/compiler/test/pmod_SUITE_data/pmod_basic.erl
index e6f4c63421..0d46cffe00 100644
--- a/lib/compiler/test/pmod_SUITE_data/pmod_basic.erl
+++ b/lib/compiler/test/pmod_SUITE_data/pmod_basic.erl
@@ -1,25 +1,26 @@
%%
%% %CopyrightBegin%
-%%
-%% Copyright Ericsson AB 2004-2009. All Rights Reserved.
-%%
+%%
+%% Copyright Ericsson AB 2004-2010. 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_basic, [Props]).
-export([lookup/1,or_props/1,prepend/1,append/1,stupid_sum/0]).
-export([bar/1,bar_bar/1]).
+-export([bc1/0, bc2/0]).
lookup(Key) ->
proplists:lookup(Key, Props).
@@ -70,3 +71,9 @@ bar(S) when S#s.a == 0 -> ok.
bar_bar(S) when is_record(S, s) -> ok;
bar_bar(_) -> error.
+
+bc1() ->
+ [A || <<A:1>> <= <<"9">> ].
+
+bc2() ->
+ << <<A:1>> || A <- [1,0,1,0] >>.