summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/string-lit-custom.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/target/string-lit-custom.rs')
-rw-r--r--src/tools/rustfmt/tests/target/string-lit-custom.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/string-lit-custom.rs b/src/tools/rustfmt/tests/target/string-lit-custom.rs
new file mode 100644
index 000000000..89639b8eb
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/string-lit-custom.rs
@@ -0,0 +1,20 @@
+fn main() {
+ let expected = "; ModuleID = \'foo\'
+
+; Function Attrs: nounwind
+declare void @llvm.memset.p0i8.i32(i8* nocapture, i8, i32, i32, i1) #0
+
+declare i32 @write(i32, i8*, i32)
+
+declare i32 @putchar(i32)
+
+declare i32 @getchar()
+
+define i32 @main() {
+entry:
+ ret i32 0
+}
+
+attributes #0 = { nounwind }
+";
+}