83
91
# When casting to vector the input type must have the same length as
84
92
# the total length of the vector.
85
93
gdb_test "print (char4) 0x01010101" "\\\$$decimal = \\{1, 1, 1, 1\\}"
86
gdb_test "print (char4) ia" "\\\$$decimal = \\{2, 0, 0, 0\\}"
87
94
gdb_test "print (int2) lla" "\\\$$decimal = \\{1, 1\\}"
97
gdb_test "print (char4) ia" "\\\$$decimal = \\{0, 0, 0, 2\\}"
99
gdb_test "print (char4) ia" "\\\$$decimal = \\{2, 0, 0, 0\\}"
89
102
gdb_test "print (int2) 1" "can only cast scalar to vector of same size"
90
103
gdb_test "print (longlong2) 2" "can only cast scalar to vector of same size"
91
104
gdb_test "print (float2) 3" "can only cast scalar to vector of same size"