blob: 9041ad37b75e066a0978230a4a9c3b1b06c8cdf1 [file] [log] [blame]
Adrian Prantl8c73ba62015-07-08 01:39:38 +00001// RUN: clang-check "%s" -- -fasm-blocks -target x86_64-apple-darwin10 2>&1 | FileCheck -check-prefix=CHECK-X86 %s -allow-empty
Alp Tokere994ebd2013-11-08 06:50:48 +00002// RUN: not clang-check "%s" -- -fasm-blocks -target powerpc-apple-darwin10 2>&1 | FileCheck -check-prefix=CHECK-PPC %s
Adrian Prantl8c73ba62015-07-08 01:39:38 +00003// REQUIRES: x86-registered-target
Alp Tokere994ebd2013-11-08 06:50:48 +00004
5void Break() {
6 __asm { int 3 }
7}
8
Adrian Prantl8c73ba62015-07-08 01:39:38 +00009// clang-check should initialize the x86 target, so x86 should work.
10// CHECK-X86-NOT: error: MS-style inline assembly is not available
11
12// Test that the ordinary error is emitted on unsupported architectures.
Alp Tokere994ebd2013-11-08 06:50:48 +000013// CHECK-PPC: error: Unsupported architecture 'powerpc' for MS-style inline assembly