aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.apple/asm-block-49.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.apple/asm-block-49.C')
-rw-r--r--gcc/testsuite/g++.apple/asm-block-49.C17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.apple/asm-block-49.C b/gcc/testsuite/g++.apple/asm-block-49.C
new file mode 100644
index 00000000000..0a51893041b
--- /dev/null
+++ b/gcc/testsuite/g++.apple/asm-block-49.C
@@ -0,0 +1,17 @@
+/* APPLE LOCAL file CW asm blocks */
+/* { dg-do assemble { target *-*-darwin* } } */
+/* { dg-options { -fasm-blocks } } */
+/* Radar 4477426 4466768 */
+
+void foo() {
+ asm .machine all
+#ifdef __i386__
+ asm .word 1
+#endif
+ asm opword 1
+ asm .byte 1,2
+ asm .short 1,2
+ asm .long 1,2
+ asm .quad 3,4,5
+ asm _emit 5, 6
+}