aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Brawn <john.brawn@arm.com>2023-03-07 18:02:15 +0000
committerJohn Brawn <john.brawn@arm.com>2023-03-07 18:06:41 +0000
commit9b2895469badad470dca186801fe025c52f5364c (patch)
tree2b909e5ebd771f5fd703cac1b2570cb88b4af609
parent157f34af7157686e6dcae631573034046340953d (diff)
downloadllvm-9b2895469badad470dca186801fe025c52f5364c.zip
llvm-9b2895469badad470dca186801fe025c52f5364c.tar.gz
llvm-9b2895469badad470dca186801fe025c52f5364c.tar.bz2
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.
-rw-r--r--clang/test/Preprocessor/directives_asm.S7
1 files 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