xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/attr-coldhot.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
2 
test1()3 int test1() __attribute__((__cold__)) {
4   return 42;
5 
6 // Check that we set the optsize attribute on the function.
7 // CHECK: @test1{{.*}}[[ATTR:#[0-9]+]]
8 // CHECK: ret
9 }
10 
11 // CHECK: attributes [[ATTR]] = { {{.*}}cold{{.*}}optsize{{.*}} }
12