summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/test/functionalities/memory/read/TestMemoryRead.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/test/functionalities/memory/read/TestMemoryRead.py b/lldb/test/functionalities/memory/read/TestMemoryRead.py
index 8ab7f71e3e0..cd7a496cf15 100644
--- a/lldb/test/functionalities/memory/read/TestMemoryRead.py
+++ b/lldb/test/functionalities/memory/read/TestMemoryRead.py
@@ -90,6 +90,14 @@ class MemoryReadTestCase(TestBase):
self.expect("memory read --format 'hex float' --size 16 `&argc`",
substrs = ['unsupported byte size (16) for hex float format'])
+ self.expect("memory read --format 'float' --count 1 --size 8 `&my_double`",
+ substrs = ['1234.'])
+
+ # (lldb) memory read --format 'float' --count 1 --size 20 `&my_double`
+ # 0x7fff5fbff598: error: unsupported byte size (20) for float format
+ self.expect("memory read --format 'float' --count 1 --size 20 `&my_double`",
+ substrs = ['unsupported byte size (20) for float format'])
+
if __name__ == '__main__':
import atexit
OpenPOWER on IntegriCloud