Author: John Brawn Date: 2023-03-07T18:06:41Z New Revision: 9b2895469badad470dca186801fe025c52f5364c
URL: https://github.com/llvm/llvm-project/commit/9b2895469badad470dca186801fe025c52f5364c DIFF: https://github.com/llvm/llvm-project/commit/9b2895469badad470dca186801fe025c52f5364c.diff LOG: 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. Added: Modified: clang/test/Preprocessor/directives_asm.S Removed: ################################################################################ diff --git a/clang/test/Preprocessor/directives_asm.S b/clang/test/Preprocessor/directives_asm.S index 55e71d621e34..a384b911005f 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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits