]> granicus.if.org Git - clang/commitdiff
Change the expectation for test/Tooling/ms-asm-no-target.cpp since
authorAdrian Prantl <aprantl@apple.com>
Wed, 8 Jul 2015 01:39:38 +0000 (01:39 +0000)
committerAdrian Prantl <aprantl@apple.com>
Wed, 8 Jul 2015 01:39:38 +0000 (01:39 +0000)
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

test/Tooling/ms-asm-no-target.cpp

index 68930b159680c7cfd4bf10cf48c421cfbc7cbcea..9041ad37b75e066a0978230a4a9c3b1b06c8cdf1 100644 (file)
@@ -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