aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test/core_fold_SUITE_data/nested_call_in_case.core
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-04-20 10:19:55 +0200
committerBjörn Gustavsson <[email protected]>2015-04-22 10:12:32 +0200
commit37996d71a60f8aa4dd1078a7903098aa656b9e35 (patch)
tree88fbbff8e18794cf4d2ec1cd109c25274941c880 /lib/compiler/test/core_fold_SUITE_data/nested_call_in_case.core
parent81354ca6651ff23ecff8dc93e1db13c115bb8369 (diff)
downloadotp-37996d71a60f8aa4dd1078a7903098aa656b9e35.tar.gz
otp-37996d71a60f8aa4dd1078a7903098aa656b9e35.tar.bz2
otp-37996d71a60f8aa4dd1078a7903098aa656b9e35.zip
test suite: Always place .core files in data directories
For tidiness, always place .core files in data directories.
Diffstat (limited to 'lib/compiler/test/core_fold_SUITE_data/nested_call_in_case.core')
-rw-r--r--lib/compiler/test/core_fold_SUITE_data/nested_call_in_case.core18
1 files changed, 18 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