summaryrefslogtreecommitdiffstats
path: root/tests/ui/structs-enums/classes-simple-cross-crate.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/structs-enums/classes-simple-cross-crate.rs')
-rw-r--r--tests/ui/structs-enums/classes-simple-cross-crate.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/structs-enums/classes-simple-cross-crate.rs b/tests/ui/structs-enums/classes-simple-cross-crate.rs
new file mode 100644
index 000000000..6ff0970c0
--- /dev/null
+++ b/tests/ui/structs-enums/classes-simple-cross-crate.rs
@@ -0,0 +1,12 @@
+// run-pass
+// aux-build:cci_class.rs
+
+extern crate cci_class;
+use cci_class::kitties::cat;
+
+pub fn main() {
+ let nyan : cat = cat(52, 99);
+ let kitty = cat(1000, 2);
+ assert_eq!(nyan.how_hungry, 99);
+ assert_eq!(kitty.how_hungry, 2);
+}