Skip to content
Snippets Groups Projects
Commit d7b39bd4 authored by Adrian Prantl's avatar Adrian Prantl
Browse files

Change the expectation for test/Tooling/ms-asm-no-target.cpp since

clang-check now initializes the available targets to support
clang module containers.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241656 91177308-0d34-0410-b5e6-96231b3b80d8
parent 09fd829b
Branches
No related tags found
No related merge requests found
// RUN: not clang-check "%s" -- -fasm-blocks -target x86_64-apple-darwin10 2>&1 | FileCheck -check-prefix=CHECK-X86 %s
// RUN: clang-check "%s" -- -fasm-blocks -target x86_64-apple-darwin10 2>&1 | FileCheck -check-prefix=CHECK-X86 %s -allow-empty
// RUN: not clang-check "%s" -- -fasm-blocks -target powerpc-apple-darwin10 2>&1 | FileCheck -check-prefix=CHECK-PPC %s
// Test that we diagnose instead of crashing when the application hasn't
// initialized LLVM targets supporting the MS-style inline asm parser.
// Also test that the ordinary error is emitted on unsupported architectures.
// REQUIRES: x86-registered-target
void Break() {
__asm { int 3 }
}
// CHECK-X86: error: MS-style inline assembly is not available
// clang-check should initialize the x86 target, so x86 should work.
// CHECK-X86-NOT: error: MS-style inline assembly is not available
// Test that the ordinary error is emitted on unsupported architectures.
// CHECK-PPC: error: Unsupported architecture 'powerpc' for MS-style inline assembly
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment