]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/valgrind/src/valgrind-3.6.0-svn/memcheck/tests/x86/bug152022.c
Inital import
[l4.git] / l4 / pkg / valgrind / src / valgrind-3.6.0-svn / memcheck / tests / x86 / bug152022.c
1
2 /* As discussed on valgrind-users in the thread 
3  http://comments.gmane.org/gmane.comp.debugging.valgrind/7535 
4  valgrinding Wine running a large win32 app (Picasa) fails with the message 
5  
6  vex: priv/host-x86/isel.c:510 (doHelperCall): Assertion 
7  `typeOfIRExpr(env->type_env, args[i]) == Ity_I32' failed. 
8
9  See http://bugs.kde.org/show_bug.cgi?id=152022
10
11 This little fragment used to cause Memcheck to assert, so if the
12 program runs to completion without dying, the test is passed.
13 */
14
15
16 int main ( void ) { 
17   __asm__ __volatile__( "subw $0x28, %%sp\n" 
18                         "movl $0, 0(%%esp)\n" 
19                         "addw $0x28, %%sp" : : : "memory" ); 
20   return 0;
21
22