summaryrefslogtreecommitdiff
path: root/test/MC/MachO/pushsection.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/MachO/pushsection.s')
-rw-r--r--test/MC/MachO/pushsection.s16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/MC/MachO/pushsection.s b/test/MC/MachO/pushsection.s
new file mode 100644
index 0000000000..6881323a4d
--- /dev/null
+++ b/test/MC/MachO/pushsection.s
@@ -0,0 +1,16 @@
+// RUN: llvm-mc -triple i386-apple-darwin9 %s -o - | FileCheck %s
+
+.text
+// CHECK: .section __TEXT,__text
+
+.pushsection __DATA, __data
+// CHECK: .section __DATA,__data
+
+.pushsection __TEXT, initcode
+// CHECK: .section __TEXT,initcode
+
+.popsection
+// CHECK: .section __DATA,__data
+
+.popsection
+// CHECK: .section __TEXT,__text