blob: 88b2a0a486bc0feb630c8e65d9d6f8cf0301fc71 [file] [log] [blame]
Eric Christopher164254d2011-04-12 00:03:38 +00001// RUN: not llvm-mc -triple x86_64-apple-darwin10 %s 2> %t.err | FileCheck %s
2// RUN: FileCheck --check-prefix=CHECK-ERRORS %s < %t.err
3// CHECK: .section __TEXT,__text,regular,pure_instructions
Eric Christopher05f9e4e2011-04-12 00:18:03 +00004// CHECK-ERRORS: error: invalid octal number
Eric Christopher164254d2011-04-12 00:03:38 +00005.long 80+08
Eric Christopher05f9e4e2011-04-12 00:18:03 +00006
7// CHECK-ERRORS: error: invalid hexadecimal number
8.long 80+0xzz
Jim Grosbach254cf032011-06-29 16:05:14 +00009
10// CHECK-ERRORS: error: literal value out of range for directive
11.byte 256
12
13// CHECK-ERRORS: error: literal value out of range for directive
14.long 4e71cf69 // double floating point constant due to missing "0x"