Add `.pushsection', `.popsection', and `.previous' directives to Darwin ASM.
[oota-llvm.git] / test / MC / MachO / previous.s
diff --git a/test/MC/MachO/previous.s b/test/MC/MachO/previous.s
new file mode 100644 (file)
index 0000000..41077cd
--- /dev/null
@@ -0,0 +1,13 @@
+// RUN: llvm-mc -triple i386-apple-darwin9 %s -o - | FileCheck %s
+
+.text
+// CHECK: .section __TEXT,__text
+
+.data
+// CHECK: .section __DATA,__data
+
+.previous
+// CHECK: .section __TEXT,__text
+
+.previous
+// CHECK: .section __DATA,__data