summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2016-11-11 17:13:50 +1000
committerGitHub <noreply@github.com>2016-11-11 17:13:50 +1000
commit35f8908c214b5458ffe32c782dc81055773f5fb4 (patch)
treeb74bb94ea3c7b4732fbed116ab13219e16f5db15 /test/files
parente8a3f7bee7a3b5c55046eafce1e16b8f24e838a0 (diff)
parent1dfdb9cf709be3234479cf4db089007fd63c3402 (diff)
downloadscala-35f8908c214b5458ffe32c782dc81055773f5fb4.tar.gz
scala-35f8908c214b5458ffe32c782dc81055773f5fb4.tar.bz2
scala-35f8908c214b5458ffe32c782dc81055773f5fb4.zip
Merge pull request #5518 from som-snytt/issue/10037-2.11
SI-10037 ASR/LSR switched in ICodeReader
Diffstat (limited to 'test/files')
-rw-r--r--test/files/run/t10037.check2
-rw-r--r--test/files/run/t10037.flags1
-rw-r--r--test/files/run/t10037/shifter_2.scala8
-rw-r--r--test/files/run/t10037/shifty_1.scala7
4 files changed, 18 insertions, 0 deletions
diff --git a/test/files/run/t10037.check b/test/files/run/t10037.check
new file mode 100644
index 0000000000..94c07bddf5
--- /dev/null
+++ b/test/files/run/t10037.check
@@ -0,0 +1,2 @@
+-1073741824
+1073741824
diff --git a/test/files/run/t10037.flags b/test/files/run/t10037.flags
new file mode 100644
index 0000000000..2a7be92cd4
--- /dev/null
+++ b/test/files/run/t10037.flags
@@ -0,0 +1 @@
+-optimise -Ybackend:GenASM -Yinline-warnings
diff --git a/test/files/run/t10037/shifter_2.scala b/test/files/run/t10037/shifter_2.scala
new file mode 100644
index 0000000000..901dd2a312
--- /dev/null
+++ b/test/files/run/t10037/shifter_2.scala
@@ -0,0 +1,8 @@
+
+object Test extends App {
+ val i = shifty.X.f(Int.MinValue)
+ val j = shifty.X.g(Int.MinValue)
+ println(i)
+ println(j)
+}
+
diff --git a/test/files/run/t10037/shifty_1.scala b/test/files/run/t10037/shifty_1.scala
new file mode 100644
index 0000000000..2f28da01ca
--- /dev/null
+++ b/test/files/run/t10037/shifty_1.scala
@@ -0,0 +1,7 @@
+
+package shifty
+
+object X {
+ @inline def f(i: Int): Int = i >> 1
+ @inline def g(i: Int): Int = i >>> 1
+}