summaryrefslogtreecommitdiff
path: root/test/files/run/t4387.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t4387.scala')
-rw-r--r--test/files/run/t4387.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/run/t4387.scala b/test/files/run/t4387.scala
new file mode 100644
index 0000000000..f51c9b0572
--- /dev/null
+++ b/test/files/run/t4387.scala
@@ -0,0 +1,12 @@
+object Test {
+ import xml.XML.loadString
+ def mkElem(arg: String) = <foo a="1" b="2" c="3" d="4" e={arg} />
+
+ val x1 = mkElem("5")
+ val x2 = mkElem("50")
+
+ def main(args: Array[String]): Unit = {
+ assert(x1 == loadString("" + x1))
+ assert(x2 != loadString("" + x1))
+ }
+}