[ThinLTO] Add code comment. NFC
[llvm-complete.git] / test / MC / MachO / ARM / build-version-diagnostics.s
blob31aa87add3acdaaf4e1f3c092801b5cbb8813951
1 // RUN: not llvm-mc -triple x86_64-apple-tvos %s 2>&1 | FileCheck %s
3 .build_version tvos,65535,0,255
4 // CHECK-NOT: build-version-diagnostics.s:[[@LINE-1]]
6 .build_version macos,1,2,3
7 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:1: warning: .build_version macos used while targeting tvos
8 // CHECK: build-version-diagnostics.s:[[@LINE-2]]:1: warning: overriding previous version directive
10 .build_version 1,2,3
11 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:16: error: platform name expected
13 .build_version macos 1,2
14 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:22: error: version number required, comma expected
16 .build_version noos,1,2
17 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:16: error: unknown platform name
19 .build_version macos,a
20 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:22: error: invalid OS major version number, integer expected
22 .build_version macos,0,1
23 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:22: error: invalid OS major version number
25 .build_version macos,-1,1
26 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:22: error: invalid OS major version number
28 .build_version macos,65536,1
29 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:22: error: invalid OS major version number
31 .build_version ios,10 0
32 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:23: error: OS minor version number required, comma expected
34 .build_version ios,10,
35 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:23: error: invalid OS minor version number, integer expected
37 .build_version ios,10,-1
38 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:23: error: invalid OS minor version number
40 .build_version ios,10,256
41 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:23: error: invalid OS minor version number
43 .build_version watchos,10,0 a
44 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:29: error: invalid OS update specifier, comma expected
46 .build_version watchos,10,0 ,
47 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:30: error: invalid OS update version number, integer expected
49 .build_version ios,10,0,-1
50 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:25: error: invalid OS update version number
52 .build_version ios,10,0,256
53 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:25: error: invalid OS update version number
55 .build_version ios,10,0,0,
56 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:26: error: unexpected token in '.build_version' directive