Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'core/org.eclipse.cdt.core.tests/resources/asmTests/AsmTest.S')
-rw-r--r--core/org.eclipse.cdt.core.tests/resources/asmTests/AsmTest.S63
1 files changed, 63 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core.tests/resources/asmTests/AsmTest.S b/core/org.eclipse.cdt.core.tests/resources/asmTests/AsmTest.S
new file mode 100644
index 00000000000..721d2df5da4
--- /dev/null
+++ b/core/org.eclipse.cdt.core.tests/resources/asmTests/AsmTest.S
@@ -0,0 +1,63 @@
+/*
+ * AsmTest.S
+ */
+
+#include <include.h>
+
+ .globl globalLabel1
+ .global globalLabel2, globalLabel3
+
+nonGlobalLabel:
+ nop
+ ret @ arm style comment
+/* end */
+
+globalLabel1:
+ movl %esp, %eax
+ movl %eax, storage
+otherLabel1:
+ movb $0x81, %ah # end-of-line comment
+ jmp globalLabel2
+
+; data
+storage:
+ .long 0
+/* end */
+
+#define MACRO mmm
+
+ /*
+ * block comment
+ */
+globalLabel2:
+ movl %esp, %eax
+ movl %eax, storage
+
+; line comment
+
+otherLabel2:
+ movb $0x81, %ah ; end-of-line comment
+ jmp globalLabel3 # comment
+/* end */
+
+globalLabel3:
+ movl %esp, %eax
+ movl %eax, storage
+
+otherLabel3:
+ movb $0x81, %ah
+ jmp globalLabel3
+/* end */
+
+ .global alloca
+alloca:
+ popl %edx
+ popl %eax
+ addl $3,%eax
+ andl $0xfffffffc,%eax
+ subl %eax,%esp
+ movl %esp,%eax
+ pushl %eax
+ pushl %edx
+ ret
+/* end */

Back to the top