~clint-fewbar/ubuntu/precise/erlang/merge-15b

« back to all changes in this revision

Viewing changes to lib/dialyzer/test/small_SUITE_data/src/disj_norm_form.erl

  • Committer: Package Import Robot
  • Author(s): Sergei Golovan
  • Date: 2011-12-15 19:20:10 UTC
  • mfrom: (1.1.18) (3.5.15 sid)
  • mto: (3.5.16 sid)
  • mto: This revision was merged to the branch mainline in revision 33.
  • Revision ID: package-import@ubuntu.com-20111215192010-jnxcfe3tbrpp0big
Tags: 1:15.b-dfsg-1
* New upstream release.
* Upload to experimental because this release breaks external drivers
  API along with ABI, so several applications are to be fixed.
* Removed SSL patch because the old SSL implementation is removed from
  the upstream distribution.
* Removed never used patch which added native code to erlang beam files.
* Removed the erlang-docbuilder binary package because the docbuilder
  application was dropped by upstream.
* Documented dropping ${erlang-docbuilder:Depends} substvar in
  erlang-depends(1) manpage.
* Made erlang-base and erlang-base-hipe provide virtual package
  erlang-abi-15.b (the number means the first erlang version, which
  provides current ABI).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%%%-------------------------------------------------------------------
 
2
%%% File    : disj_norm_form.erl
 
3
%%% Author  : Tobias Lindahl <tobiasl@csd.uu.se>
 
4
%%% Description : Exposes a bad behavior in expansion to
 
5
%%%               disjunctive normal form of guards.
 
6
%%%
 
7
%%% Created : 24 Aug 2007 by Tobias Lindahl <tobiasl@it.uu.se>
 
8
%%%-------------------------------------------------------------------
 
9
-module(disj_norm_form).
 
10
 
 
11
-export([t/1]).
 
12
 
 
13
-record(foo, {bar}).
 
14
 
 
15
t(R) ->
 
16
  if R#foo.bar =:= 1;
 
17
     R#foo.bar =:= 2;
 
18
     R#foo.bar =:= 3;
 
19
     R#foo.bar =:= 4;
 
20
     R#foo.bar =:= 5;
 
21
     R#foo.bar =:= 6 -> ok;
 
22
     true -> error
 
23
  end.