Changeset 0b9ac3c in mainline for uspace/app/tester/fault/fault2.c


Ignore:
Timestamp:
2010-02-23T19:03:28Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c62d2e1
Parents:
1ccafee (diff), 5e50394 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tester/fault/fault2.c

    r1ccafee r0b9ac3c  
    3030#include "../tester.h"
    3131
     32typedef int __attribute__((may_alias)) aliasing_int;
     33
    3234char *test_fault2(void)
    3335{
     
    3537        volatile int var1;
    3638       
    37         var1 = *((int *) (((char *) (&var)) + 1));
     39        var1 = *((aliasing_int *) (((char *) (&var)) + 1));
    3840       
    3941        return "Survived unaligned read";
Note: See TracChangeset for help on using the changeset viewer.