From 4e26801ea91f2b7d2e88005db1ce57d104d0dbe9 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Thu, 3 Jul 2025 08:14:44 +0900 Subject: [PATCH] clang: Add requires webassembly to a test Prior to 6ab7e52dd80dc2ece12cc7f1924a71f1a58e2a8a the test got away with out it because the error was not triggered if the backend didn't run. --- clang/test/CodeGenCXX/builtins-eh-wasm.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/test/CodeGenCXX/builtins-eh-wasm.cpp b/clang/test/CodeGenCXX/builtins-eh-wasm.cpp index 9a7134c48f20..b3a6ffc92e11 100644 --- a/clang/test/CodeGenCXX/builtins-eh-wasm.cpp +++ b/clang/test/CodeGenCXX/builtins-eh-wasm.cpp @@ -1,3 +1,4 @@ +// REQUIRES: webassembly-registered-target // RUN: %clang_cc1 -triple wasm32-unknown-unknown -fexceptions -fcxx-exceptions -target-feature +reference-types -target-feature +exception-handling -target-feature +multivalue -mllvm -wasm-enable-eh -exception-model=wasm -emit-llvm -o - %s | FileCheck %s // Check if __builtin_wasm_throw and __builtin_wasm_rethrow are correctly