From 9b2895469badad470dca186801fe025c52f5364c Mon Sep 17 00:00:00 2001 From: John Brawn Date: Tue, 7 Mar 2023 18:02:15 +0000 Subject: [PATCH] Use explicit target in clang/test/Preprocessor/directives_asm.S This prevents the test from failing when the default target doesn't support the .warning directive. --- clang/test/Preprocessor/directives_asm.S | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/clang/test/Preprocessor/directives_asm.S b/clang/test/Preprocessor/directives_asm.S index 55e71d6..a384b91 100644 --- a/clang/test/Preprocessor/directives_asm.S +++ b/clang/test/Preprocessor/directives_asm.S @@ -1,4 +1,5 @@ -// RUN: %clang -c %s -o /dev/null 2>&1 | FileCheck %s +// REQUIRES: x86-registered-target +// RUN: %clang --target=i386-pc-linux -c %s -o /dev/null 2>&1 | FileCheck %s // Check that preprocessor directives are recognised as such, but lines starting // with a # that aren't directives are instead treated as comments. @@ -6,7 +7,7 @@ #define MACRO .warning "This is a macro" MACRO -// CHECK: directives_asm.S:7:9: warning: This is a macro +// CHECK: directives_asm.S:8:9: warning: This is a macro #not a preprocessing directive @@ -16,7 +17,7 @@ .warning "line number should not change" -// CHECK: directives_asm.S:17:9: warning: line number should not change +// CHECK: directives_asm.S:18:9: warning: line number should not change #line 100 -- 2.7.4