aboutsummaryrefslogtreecommitdiff
path: root/tests/tests2/85-asm-outside-function.c
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2016-12-20 04:49:22 +0100
committerMichael Matz <matz@suse.de>2016-12-20 04:58:34 +0100
commit42e2a67f23448dc1ff6a23da650176ebad6e1681 (patch)
tree0f9438aa59ea42235156eee0a69bb0db9ac29745 /tests/tests2/85-asm-outside-function.c
parent559ee1e940c22a49ac8a39f6053917533e71243a (diff)
downloadtinycc-42e2a67f23448dc1ff6a23da650176ebad6e1681.tar.gz
tinycc-42e2a67f23448dc1ff6a23da650176ebad6e1681.tar.bz2
Fix some code suppression fallout
Some more subtle issues with code suppression: - outputting asms but not their operand setup is broken - but global asms must always be output - statement expressions are transparent to code suppression - vtop can't be transformed from VT_CMP/VT_JMP when nocode_wanted Also remove .exe files from tests2 if they don't fail.
Diffstat (limited to 'tests/tests2/85-asm-outside-function.c')
-rw-r--r--tests/tests2/85-asm-outside-function.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/tests2/85-asm-outside-function.c b/tests/tests2/85-asm-outside-function.c
index 0aa7e33..dc5639a 100644
--- a/tests/tests2/85-asm-outside-function.c
+++ b/tests/tests2/85-asm-outside-function.c
@@ -1,7 +1,9 @@
+extern int printf (const char *, ...);
extern void vide(void);
__asm__("vide: ret");
int main() {
vide();
+ printf ("okay\n");
return 0;
}