Skip to content

Commit

Permalink
Add test.md
Browse files Browse the repository at this point in the history
  • Loading branch information
shinh committed May 12, 2015
1 parent 31b36ed commit c8d4ba1
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 9 deletions.
10 changes: 10 additions & 0 deletions bar.c
@@ -1,2 +1,12 @@
void baz() {
}

void bar() {
asm("push %eax\n"
"call baz\n"
"pop %eax\n");
}

int main() {
bar();
}
1 change: 1 addition & 0 deletions dis.rb
Expand Up @@ -232,6 +232,7 @@ def get_data(addr)
next if operand =~ /^-?0x\h+\(/
next if operand =~ /^\(?%/
next if operand =~ /</
next if !operand[/(0x)?(\h+)/, 2]
addr = operand[/(0x)?(\h+)/, 2].hex

if syms[addr]
Expand Down
21 changes: 12 additions & 9 deletions hello.d
@@ -1,9 +1,12 @@
import std.c.stdio;
void main(){printf="Hello, world!\n";}
/*
import std.cstream;
int main() {
dout.writeLine("Hello, world!");
return 0;
}
*/
hello.o: hello.c /usr/include/stdc-predef.h /usr/include/stdio.h \
/usr/include/features.h /usr/include/x86_64-linux-gnu/sys/cdefs.h \
/usr/include/x86_64-linux-gnu/bits/wordsize.h \
/usr/include/x86_64-linux-gnu/gnu/stubs.h \
/usr/include/x86_64-linux-gnu/gnu/stubs-64.h \
/usr/lib/gcc/x86_64-linux-gnu/4.9/include/stddef.h \
/usr/include/x86_64-linux-gnu/bits/types.h \
/usr/include/x86_64-linux-gnu/bits/typesizes.h /usr/include/libio.h \
/usr/include/_G_config.h /usr/include/wchar.h \
/usr/lib/gcc/x86_64-linux-gnu/4.9/include/stdarg.h \
/usr/include/x86_64-linux-gnu/bits/stdio_lim.h \
/usr/include/x86_64-linux-gnu/bits/sys_errlist.h
4 changes: 4 additions & 0 deletions test.md
@@ -0,0 +1,4 @@
foobar
======

yay

0 comments on commit c8d4ba1

Please sign in to comment.