Skip to content

[clang][bpf] Fix invalid RUN lines in stack protector warning test #65251

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

Merged
merged 1 commit into from
Sep 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions clang/test/CodeGen/bpf-stack-protector.c
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
// REQUIRES: bpf-registered-target

// RUN %clang -target bpf -S -emit-llvm -o - %s -fno-stack-protector 2>&1 \
// RUN | FileCheck -check-prefix=OFF -check-prefix=COMMON %s
// RUN: %clang -target bpf -S -emit-llvm -o - %s -fno-stack-protector 2>&1 \
// RUN: | FileCheck -check-prefix=OFF -check-prefix=COMMON %s

// RUN: %clang -target bpf -S -emit-llvm -o - %s -fstack-protector 2>&1 \
// RUN: | FileCheck -check-prefix=ON -check-prefix=COMMON %s
// RUN: | FileCheck -check-prefix=ON -check-prefix=COMMON -check-prefix=WARNING %s

// RUN: %clang -target bpf -S -emit-llvm -o - %s -fstack-protector-all 2>&1 \
// RUN: | FileCheck -check-prefix=ALL -check-prefix=COMMON %s
// RUN: | FileCheck -check-prefix=ALL -check-prefix=COMMON -check-prefix=WARNING %s

// RUN: %clang -target bpf -S -emit-llvm -o - %s -fstack-protector-strong 2>&1 \
// RUN: | FileCheck -check-prefix=STRONG -check-prefix=COMMON %s
// RUN: | FileCheck -check-prefix=STRONG -check-prefix=COMMON -check-prefix=WARNING %s

typedef __SIZE_TYPE__ size_t;

Expand All @@ -22,7 +22,7 @@ char *strcpy(char *s1, const char *s2);
// ON: warning: ignoring '-fstack-protector'
// ALL: warning: ignoring '-fstack-protector-all'
// STRONG: warning: ignoring '-fstack-protector-strong'
// COMMON-SAME: option as it is not currently supported for target 'bpf'
// WARNING-SAME: option as it is not currently supported for target 'bpf'

// COMMON: define {{.*}}void @test1(ptr noundef %{{[0-9a-z]+}}) #[[A:.*]] {
void test1(const char *msg) {
Expand Down