Changeset 04803bf in mainline for uspace/app/tester/fault/fault2.c
- Timestamp:
- 2011-03-21T22:00:17Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 143932e3
- Parents:
- b50b5af2 (diff), 7308e84 (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. - File:
-
- 1 edited
-
uspace/app/tester/fault/fault2.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/fault/fault2.c
rb50b5af2 r04803bf 30 30 #include "../tester.h" 31 31 32 char *test_fault2(void) 32 typedef int __attribute__((may_alias)) aliasing_int; 33 34 const char *test_fault2(void) 33 35 { 34 36 volatile long long var; 35 37 volatile int var1; 36 38 37 var1 = *(( int *) (((char *) (&var)) + 1));39 var1 = *((aliasing_int *) (((char *) (&var)) + 1)); 38 40 39 41 return "Survived unaligned read";
Note:
See TracChangeset
for help on using the changeset viewer.
