about summary refs log tree commit diff stats
path: root/030container.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-08-07 13:01:49 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-08-07 13:01:49 -0700
commita701986fad9478029e8fac6f93080fb17192785c (patch)
tree74a117b7e514528dcbfb24f0de303e2e4c175cf6 /030container.cc
parent6d2b1168e31d23ba4e9312d70607d2e67e5cd833 (diff)
downloadmu-a701986fad9478029e8fac6f93080fb17192785c.tar.gz
1952
Diffstat (limited to '030container.cc')
-rw-r--r--030container.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/030container.cc b/030container.cc
index a4aba7fa..d53786c4 100644
--- a/030container.cc
+++ b/030container.cc
@@ -26,6 +26,14 @@ recipe main [
 +mem: storing 34 in location 3
 +mem: storing 35 in location 4
 
+//: trying to copy to a differently-sized destination will fail
+:(scenario copy_checks_size)
+% Hide_warnings = true;
+recipe main [
+  2:point <- copy 1:number
+]
++warn: main: size mismatch in storing to 2:point at '2:point <- copy 1:number'
+
 :(before "End Mu Types Initialization")
 // A more complex container, containing another container as one of its
 // elements.