Add test-case for hex floating-literals
authorTim Northover <tnorthover@apple.com>
Wed, 14 Aug 2013 14:55:54 +0000 (14:55 +0000)
committerTim Northover <tnorthover@apple.com>
Wed, 14 Aug 2013 14:55:54 +0000 (14:55 +0000)
Somehow I forgot to test one of the error conditions I'd added.

llvm-svn: 188372

llvm/test/MC/AsmParser/floating-literals.s

index 512b7b36207281bfdf67de9150445b1e61a12fd6..6578e32ce822ef87c13ba8e79614e3f25342ff24 100644 (file)
@@ -77,3 +77,6 @@
 # CHECK-ERROR: unexpected token in directive
 .float 0x.p5
 
+# CHECK-ERROR: error: invalid hexadecimal floating-point constant: expected exponent part 'p'
+# CHECK-ERROR: unexpected token in directive
+.float 0x1.2