about summary refs log tree commit diff
path: root/tests/ui/rfcs/rfc-3348-c-string-literals/basic.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/rfcs/rfc-3348-c-string-literals/basic.rs')
-rw-r--r--tests/ui/rfcs/rfc-3348-c-string-literals/basic.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/rfcs/rfc-3348-c-string-literals/basic.rs b/tests/ui/rfcs/rfc-3348-c-string-literals/basic.rs
new file mode 100644
index 00000000000..e4b07ab8108
--- /dev/null
+++ b/tests/ui/rfcs/rfc-3348-c-string-literals/basic.rs
@@ -0,0 +1,7 @@
+// run-pass
+
+#![feature(c_str_literals)]
+
+fn main() {
+    assert_eq!(b"test\0", c"test".to_bytes_with_nul());
+}