aboutsummaryrefslogtreecommitdiff
path: root/tests/ui-stable/include_value_wrong_size.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui-stable/include_value_wrong_size.rs')
-rw-r--r--tests/ui-stable/include_value_wrong_size.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui-stable/include_value_wrong_size.rs b/tests/ui-stable/include_value_wrong_size.rs
new file mode 100644
index 0000000..d87b306
--- /dev/null
+++ b/tests/ui-stable/include_value_wrong_size.rs
@@ -0,0 +1,11 @@
+// Copyright 2022 The Fuchsia Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#[macro_use]
+extern crate zerocopy;
+
+fn main() {}
+
+// Should fail because the file is 4 bytes long, not 8.
+const WRONG_SIZE: u64 = include_value!("../../testdata/include_value/data");