pr31579.C: Cast pointer via __SIZE_TYPE__ instead of 'unsigned long'.

2009-06-10  Kai Tietz  <kai.tietz@onevision.com>

        * g++.dg/torture/pr31579.C: Cast pointer
        via __SIZE_TYPE__ instead of 'unsigned long'.

From-SVN: r148342
This commit is contained in:
Kai Tietz 2009-06-10 11:41:30 +00:00 committed by Kai Tietz
parent 412ac8d55e
commit c9edd8f4cf
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-06-10 Kai Tietz <kai.tietz@onevision.com>
* g++.dg/torture/pr31579.C: Cast pointer
via __SIZE_TYPE__ instead of 'unsigned long'.
2009-06-10 Anthony Green <green@moxielogic.com>
* testsuite/lib/target-supports.exp (check_profiling_available):

View File

@ -5,6 +5,6 @@
struct Industry {
unsigned char produced_cargo[2];
};
unsigned int a = (((unsigned long)&reinterpret_cast<const volatile
unsigned int a = (((__SIZE_TYPE__)&reinterpret_cast<const volatile
char&>((((Industry*)(char*)8)->produced_cargo[0]))) - 8);