From: Adrian Prantl Date: Wed, 8 Jul 2015 01:39:38 +0000 (+0000) Subject: Change the expectation for test/Tooling/ms-asm-no-target.cpp since X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d7b39bd411683447bd761afd1114a7a6f555672e;p=clang 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 --- diff --git a/test/Tooling/ms-asm-no-target.cpp b/test/Tooling/ms-asm-no-target.cpp index 68930b1596..9041ad37b7 100644 --- a/test/Tooling/ms-asm-no-target.cpp +++ b/test/Tooling/ms-asm-no-target.cpp @@ -1,13 +1,13 @@ -// 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