-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[clang][NFC] Precommit test file refactoring #125944
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
An upcoming change will need to use add additional tests to this file, so this patch updates the RUN line to use a test prefix.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
@llvm/pr-subscribers-clang Author: Paul Kirth (ilovepi) ChangesAn upcoming change will need to use add additional tests to this file, Full diff: https://github.com/llvm/llvm-project/pull/125944.diff 1 Files Affected:
diff --git a/clang/test/CodeGen/fat-lto-objects-cfi.cpp b/clang/test/CodeGen/fat-lto-objects-cfi.cpp
index 628951847053ac..4055c5bee9b8a6 100644
--- a/clang/test/CodeGen/fat-lto-objects-cfi.cpp
+++ b/clang/test/CodeGen/fat-lto-objects-cfi.cpp
@@ -2,20 +2,20 @@
// RUN: %clang_cc1 -triple x86_64-unknown-fuchsia -O2 -flto -ffat-lto-objects \
// RUN: -fsanitize=cfi-icall -fsanitize-trap=cfi-icall -fvisibility=hidden -emit-llvm -o - %s \
-// RUN: | FileCheck %s
+// RUN: | FileCheck %s --check-prefix=TYPE_TEST
-// CHECK: llvm.embedded.object
-// CHECK-SAME: section ".llvm.lto"
+// TYPE_TEST: llvm.embedded.object
+// TYPE_TEST-SAME: section ".llvm.lto"
-// CHECK-LABEL: define hidden void @foo
-// CHECK: entry:
-// CHECK-NEXT: %cmp14.not = icmp eq i64 %len, 0
-// CHECK-NEXT: br i1 %cmp14.not, label %for.end7, label %for.cond1.preheader.preheader
-// CHECK: for.cond1.preheader.preheader: ; preds = %entry
-// CHECK-NEXT: %arrayidx.1 = getelementptr inbounds nuw i8, ptr %ptr, i64 4
-// CHECK-NEXT: br label %for.cond1.preheader
+// TYPE_TEST-LABEL: define hidden void @foo
+// TYPE_TEST: entry:
+// TYPE_TEST-NEXT: %cmp14.not = icmp eq i64 %len, 0
+// TYPE_TEST-NEXT: br i1 %cmp14.not, label %for.end7, label %for.cond1.preheader.preheader
+// TYPE_TEST: for.cond1.preheader.preheader: ; preds = %entry
+// TYPE_TEST-NEXT: %arrayidx.1 = getelementptr inbounds nuw i8, ptr %ptr, i64 4
+// TYPE_TEST-NEXT: br label %for.cond1.preheader
-// CHECK-NOT: @llvm.type.test
+// TYPE_TEST-NOT: @llvm.type.test
// The code below is a reduced case from https://github.com/llvm/llvm-project/issues/112053
#define __PRINTFLIKE(__fmt, __varargs) __attribute__((__format__(__printf__, __fmt, __varargs)))
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/14157 Here is the relevant piece of the build log for the reference
|
Hmm, build bot failure is unrelated, since it doesn't look like the test I changed is failing. |
An upcoming change will need to use add additional tests to this file, so this patch updates the RUN line to use a test prefix.
An upcoming change will need to use add additional tests to this file,
so this patch updates the RUN line to use a test prefix.