summaryrefslogtreecommitdiffstats
path: root/src/test/ui/sepcomp/auxiliary/sepcomp_lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/sepcomp/auxiliary/sepcomp_lib.rs')
-rw-r--r--src/test/ui/sepcomp/auxiliary/sepcomp_lib.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/ui/sepcomp/auxiliary/sepcomp_lib.rs b/src/test/ui/sepcomp/auxiliary/sepcomp_lib.rs
new file mode 100644
index 000000000..1536228c2
--- /dev/null
+++ b/src/test/ui/sepcomp/auxiliary/sepcomp_lib.rs
@@ -0,0 +1,21 @@
+// compile-flags: -C codegen-units=3 --crate-type=rlib,dylib -g
+
+pub mod a {
+ pub fn one() -> usize {
+ 1
+ }
+}
+
+pub mod b {
+ pub fn two() -> usize {
+ 2
+ }
+}
+
+pub mod c {
+ use a::one;
+ use b::two;
+ pub fn three() -> usize {
+ one() + two()
+ }
+}