Changeset 654
- Timestamp:
- 09/01/10 02:04:14 (1 year ago)
- Files:
-
- trunk/test/do_test.sh (modified) (4 diffs)
- trunk/test/fail_compilation/fail225.d (modified) (1 diff)
- trunk/test/fail_compilation/fail274.d (modified) (1 diff)
- trunk/test/fail_compilation/fail37.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/test/do_test.sh
r641 r654 16 16 # enable support for expressions like *( ) in substitutions 17 17 shopt -s extglob 18 19 # NOTE: $? tests below test for greater than 125: 20 # 126 -- command found but isn't executable 21 # 127 -- command not found 22 # 128+N -- N is the signal that caused the process to exit 23 # for example, segv == 11, so $? will be 139 24 # abort == 6, so $? will be 134 18 25 19 26 input_file=${input_dir}/${test_name}.${test_extension} … … 78 85 echo ${DMD} -I${input_dir} ${r_args} $x -od${output_dir} -of${test_app} ${extra_compile_args} ${input_file} ${extra_files} >> ${output_file} 79 86 ${DMD} -I${input_dir} ${r_args} $x -od${output_dir} -of${test_app} ${extra_compile_args} ${input_file} ${extra_files} >> ${output_file} 2>&1 80 if [ $? -eq ${expect_compile_rc} ]; then87 if [ $? -eq ${expect_compile_rc} -o $? -gt 125 ]; then 81 88 cat ${output_file} 82 89 rm -f ${output_file} … … 87 94 echo ${DMD} -I${input_dir} ${r_args} $x -od${output_dir} -c $file >> ${output_file} 88 95 ${DMD} -I${input_dir} ${r_args} $x -od${output_dir} -c $file >> ${output_file} 2>&1 89 if [ $? -eq ${expect_compile_rc} ]; then96 if [ $? -eq ${expect_compile_rc} -o $? -gt 125 ]; then 90 97 cat ${output_file} 91 98 rm -f ${output_file} … … 101 108 echo ${DMD} -od${output_dir} -of${test_app} ${test_app}.o ${ofiles[*]} >> ${output_file} 102 109 ${DMD} -od${output_dir} -of${test_app} ${test_app}.o ${ofiles[*]} >> ${output_file} 2>&1 103 if [ $? -eq ${expect_compile_rc} ]; then110 if [ $? -eq ${expect_compile_rc} -o $? -gt 125 ]; then 104 111 cat ${output_file} 105 112 rm -f ${output_file} trunk/test/fail_compilation/fail225.d
r576 r654 1 struct Struct { 2 char* chptr; 3 } 1 disabled until bug 4750 is fixed 2 //struct Struct { 3 // char* chptr; 4 //} 5 // 6 //void main() 7 //{ 8 // char ch = 'd'; 9 // invariant Struct iStruct = {1, &ch}; 10 //} 4 11 5 void main()6 {7 char ch = 'd';8 invariant Struct iStruct = {1, &ch};9 }10 trunk/test/fail_compilation/fail274.d
r576 r654 1 void main() { 2 asm { inc [; } 3 } 4 5 // 1144 mixin_34_A. Segfault D1 only 6 char[] testHelper(A ...)(){ 7 char[] result; 8 foreach(t; a){ 9 result ~= "int " ~ t ~ ";\n"; 10 } 11 return result; 12 } 13 void main(){ 14 mixin( testHelper!( "hello", "world" )() ); 15 } 1 disabled until bug 4771 is fixed 2 //void main() { 3 // asm { inc [; } 4 //} 5 // 6 //// 1144 mixin_34_A. Segfault D1 only 7 //char[] testHelper(A ...)(){ 8 // char[] result; 9 // foreach(t; a){ 10 // result ~= "int " ~ t ~ ";\n"; 11 // } 12 // return result; 13 // } 14 //void main(){ 15 // mixin( testHelper!( "hello", "world" )() ); 16 // } trunk/test/fail_compilation/fail37.d
r576 r654 1 ulong[cast(uint)((cast(float)int.sizeof/ulong.sizeof)-int.max>>2)+int.max>>2] 2 hexarray; 1 disable until bug 4751 is fixed 2 //ulong[cast(uint)((cast(float)int.sizeof/ulong.sizeof)-int.max>>2)+int.max>>2] 3 //hexarray; 3 4
