From: John Brawn Date: Tue, 7 Mar 2023 18:02:15 +0000 (+0000) Subject: Use explicit target in clang/test/Preprocessor/directives_asm.S X-Git-Tag: upstream/17.0.6~15605 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9b2895469badad470dca186801fe025c52f5364c;p=platform%2Fupstream%2Fllvm.git 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. --- 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