Changeset 806
- Timestamp:
- 12/14/10 05:42:48 (14 years ago)
- Files:
-
- trunk/test/runnable/testdstress.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/test/runnable/testdstress.d
r649 r806 842 842 { 843 843 C41 c; 844 844 assert(counter41==0); 845 845 c = new C41(); 846 846 assert(counter41==3); 847 847 } 848 848 849 849 /* ================================ */ 850 850 851 851 struct S42{ 852 852 int y; 853 853 void* x; 854 854 } 855 855 856 856 void test42() 857 857 { 858 858 size_t t; 859 859 t = S42.y.offsetof; 860 860 assert(t == 0); 861 861 t = S42.x.offsetof; 862 assert( t == int.sizeof);862 assert((t % (void*).sizeof) == 0); 863 863 } 864 864 865 865 /* ================================ */ 866 866 867 867 int main() 868 868 { 869 869 test1(); 870 870 test2(); 871 871 test3(); 872 872 test4(); 873 873 test5(); 874 874 test6(); 875 875 test7(); 876 876 test8(); 877 877 test9(); 878 878 test10(); 879 879 test11(); 880 880 test12(); 881 881 test13(); 882 882 test14();
