aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test/core_fold_SUITE_data
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compiler/test/core_fold_SUITE_data')
-rw-r--r--lib/compiler/test/core_fold_SUITE_data/nested_call_in_case.core18
-rw-r--r--lib/compiler/test/core_fold_SUITE_data/unused_multiple_values_error.core11
2 files changed, 29 insertions, 0 deletions
diff --git a/lib/compiler/test/core_fold_SUITE_data/nested_call_in_case.core b/lib/compiler/test/core_fold_SUITE_data/nested_call_in_case.core
new file mode 100644
index 0000000000..c46906b2ed
--- /dev/null
+++ b/lib/compiler/test/core_fold_SUITE_data/nested_call_in_case.core
@@ -0,0 +1,18 @@
+module 'nested_call_in_case' ['a'/2]
+ attributes []
+
+'a'/2 =
+ fun (_x,_y) ->
+ case call 'erlang':'>'
+ (call 'erlang':'length'
+ (_x), _y) of
+ <'true'> when 'true' ->
+ 'yes'
+ <'false'> when 'true' ->
+ 'no'
+ ( <_omega> when 'true' ->
+ primop 'match_fail'
+ ('if_clause')
+ -| ['compiler_generated'] )
+ end
+end
diff --git a/lib/compiler/test/core_fold_SUITE_data/unused_multiple_values_error.core b/lib/compiler/test/core_fold_SUITE_data/unused_multiple_values_error.core
new file mode 100644
index 0000000000..e06587c936
--- /dev/null
+++ b/lib/compiler/test/core_fold_SUITE_data/unused_multiple_values_error.core
@@ -0,0 +1,11 @@
+module 'unused_multiple_values_error' ['hello'/1]
+ attributes []
+'hello'/1 =
+ fun (_cor0) ->
+ do
+ case _cor0 of
+ <_cor0> when 'true' ->
+ <'ok','ok'>
+ end
+ 'ok'
+end