[WebAssembly] Make wasm-eh.cpp requires WebAssembly
authorHeejin Ahn <aheejin@gmail.com>
Thu, 12 Sep 2019 06:52:24 +0000 (06:52 +0000)
committerHeejin Ahn <aheejin@gmail.com>
Thu, 12 Sep 2019 06:52:24 +0000 (06:52 +0000)
D67208 added a new test line to wasm-eh.cpp that invokes the LLVM
backend and this test fails on bots that don't have WebAssembly target.
This makes wasm-eh.cpp explicitly require WebAssembly so this will be
skipped on those targets.

llvm-svn: 371711

clang/test/CodeGenCXX/wasm-eh.cpp

index af60d636ab881d1d15643ad23b291b0a781ca879..9425177df0a8d091c15f8461e29f01e262bae0ba 100644 (file)
@@ -1,3 +1,4 @@
+// REQUIRES: webassembly-registered-target
 // RUN: %clang_cc1 %s -triple wasm32-unknown-unknown -fms-extensions -fexceptions -fcxx-exceptions -fwasm-exceptions -target-feature +exception-handling -emit-llvm -o - -std=c++11 | FileCheck %s
 // RUN: %clang_cc1 %s -triple wasm64-unknown-unknown -fms-extensions -fexceptions -fcxx-exceptions -fwasm-exceptions -target-feature +exception-handling -emit-llvm -o - -std=c++11 | FileCheck %s
 // RUN: %clang_cc1 %s -triple wasm32-unknown-unknown -fms-extensions -fexceptions -fcxx-exceptions -fwasm-exceptions -target-feature +exception-handling -S -o - -std=c++11 | FileCheck %s --check-prefix=ASSEMBLY