diff options
Diffstat (limited to 'clang/test/CodeGen/attr-minsize.c')
-rw-r--r-- | clang/test/CodeGen/attr-minsize.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/clang/test/CodeGen/attr-minsize.c b/clang/test/CodeGen/attr-minsize.c deleted file mode 100644 index dd260e43e00..00000000000 --- a/clang/test/CodeGen/attr-minsize.c +++ /dev/null @@ -1,26 +0,0 @@ -// RUN: %clang_cc1 -Oz -emit-llvm %s -o - | FileCheck %s -check-prefix=Oz -// RUN: %clang_cc1 -O0 -emit-llvm %s -o - | FileCheck %s -check-prefix=OTHER -// RUN: %clang_cc1 -O1 -emit-llvm %s -o - | FileCheck %s -check-prefix=OTHER -// RUN: %clang_cc1 -O2 -emit-llvm %s -o - | FileCheck %s -check-prefix=OTHER -// RUN: %clang_cc1 -O3 -emit-llvm %s -o - | FileCheck %s -check-prefix=OTHER -// RUN: %clang_cc1 -Os -emit-llvm %s -o - | FileCheck %s -check-prefix=OTHER -// Check that we set the minsize attribute on each function -// when Oz optimization level is set. - -int test1() { - return 42; -// Oz: @test1{{.*}}minsize -// Oz: ret -// OTHER: @test1 -// OTHER-NOT: minsize -// OTHER: ret -} - -int test2() { - return 42; -// Oz: @test2{{.*}}minsize -// Oz: ret -// OTHER: @test2 -// OTHER-NOT: minsize -// OTHER: ret -} |