aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.opencl
diff options
context:
space:
mode:
authorKen Werner <ken.werner@de.ibm.com>2011-02-15 20:10:13 +0000
committerKen Werner <ken.werner@de.ibm.com>2011-02-15 20:10:13 +0000
commit648cd113ef17e879ef867c1d37567d0c0138dd47 (patch)
tree42f025658d7c140d9b6425b0b9c41b1a173d284a /gdb/testsuite/gdb.opencl
parentd58a192976eba896842e03d757d72492dbcb9a0b (diff)
downloadgdb-648cd113ef17e879ef867c1d37567d0c0138dd47.zip
gdb-648cd113ef17e879ef867c1d37567d0c0138dd47.tar.gz
gdb-648cd113ef17e879ef867c1d37567d0c0138dd47.tar.bz2
gdb/ChangeLog
2011-02-15 Ken Werner <ken.werner@de.ibm.com> * opencl-lang.c (build_opencl_types): Set the size of the built-in bool data type to a size of one byte. gdb/testsuite/ChangeLog 2011-02-15 Ken Werner <ken.werner@de.ibm.com> * gdb.opencl/datatypes.exp: Expect the size of a bool to be one byte.
Diffstat (limited to 'gdb/testsuite/gdb.opencl')
-rw-r--r--gdb/testsuite/gdb.opencl/datatypes.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.opencl/datatypes.exp b/gdb/testsuite/gdb.opencl/datatypes.exp
index 8dfcae0..0de9270 100644
--- a/gdb/testsuite/gdb.opencl/datatypes.exp
+++ b/gdb/testsuite/gdb.opencl/datatypes.exp
@@ -44,7 +44,7 @@ gdb_test_no_output "set language opencl" "No prompt when setting the language to
# Check OpenCL data types (GDB)
gdb_test "whatis bool" "type = bool"
-gdb_test "p sizeof(bool)" " = 4"
+gdb_test "p sizeof(bool)" " = 1"
gdb_test "whatis char" "type = char"
gdb_test "p sizeof(char)" " = 1"
@@ -229,7 +229,7 @@ set have_cl_khr_fp16 [get_integer_valueof "have_cl_khr_fp16" 0]
# Check OpenCL data types (DWARF)
gdb_test "whatis b" "type = bool"
-gdb_test "p sizeof(b)" " = 4"
+gdb_test "p sizeof(b)" " = 1"
gdb_test "print b" " = 0"
gdb_test "whatis c" "type = char"