1 // RUN: not llvm-mc -triple x86_64-apple-tvos %s 2>&1 | FileCheck %s 2 3 .build_version tvos,65535,0,255 4 // CHECK-NOT: build-version-diagnostics.s:[[@LINE-1]] 5 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 9 10 .build_version 1,2,3 11 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:16: error: platform name expected 12 13 .build_version macos 1,2 14 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:22: error: version number required, comma expected 15 16 .build_version noos,1,2 17 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:16: error: unknown platform name 18 19 .build_version macos,a 20 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:22: error: invalid OS major version number, integer expected 21 22 .build_version macos,0,1 23 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:22: error: invalid OS major version number 24 25 .build_version macos,-1,1 26 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:22: error: invalid OS major version number 27 28 .build_version macos,65536,1 29 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:22: error: invalid OS major version number 30 31 .build_version ios,10 0 32 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:23: error: OS minor version number required, comma expected 33 34 .build_version ios,10, 35 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:23: error: invalid OS minor version number, integer expected 36 37 .build_version ios,10,-1 38 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:23: error: invalid OS minor version number 39 40 .build_version ios,10,256 41 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:23: error: invalid OS minor version number 42 43 .build_version watchos,10,0 a 44 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:29: error: invalid OS update specifier, comma expected 45 46 .build_version watchos,10,0 , 47 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:30: error: invalid OS update version number, integer expected 48 49 .build_version ios,10,0,-1 50 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:25: error: invalid OS update version number 51 52 .build_version ios,10,0,256 53 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:25: error: invalid OS update version number 54 55 .build_version ios,10,0,0, 56 // CHECK: build-version-diagnostics.s:[[@LINE-1]]:26: error: unexpected token in '.build_version' directive 57