From 2d56fbf6cd16bb7d2ae6c726b37d2096b9bdcd5a Mon Sep 17 00:00:00 2001 From: Arthur Eubanks Date: Tue, 28 Sep 2021 16:59:15 -0700 Subject: [PATCH] [test] Specify triple in backend-attribute-error-warning.cpp Tests fail on Windows otherwise. --- clang/test/Frontend/backend-attribute-error-warning.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/clang/test/Frontend/backend-attribute-error-warning.cpp b/clang/test/Frontend/backend-attribute-error-warning.cpp index 0338fe4131d1..9e3fac8fcd7a 100644 --- a/clang/test/Frontend/backend-attribute-error-warning.cpp +++ b/clang/test/Frontend/backend-attribute-error-warning.cpp @@ -1,5 +1,6 @@ -// RUN: %clang_cc1 -verify=expected,enabled -emit-codegen-only %s -// RUN: %clang_cc1 -verify -emit-codegen-only -Wno-attribute-warning %s +// REQUIRES: x86-registered-target +// RUN: %clang_cc1 -triple x86_64-linux-gnu -verify=expected,enabled -emit-codegen-only %s +// RUN: %clang_cc1 -verify -triple x86_64-linux-gnu -emit-codegen-only -Wno-attribute-warning %s __attribute__((error("oh no foo"))) void foo(void);