1 // RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
2 
3 int test1() __attribute__((__cold__)) {
4   return 42;
5 
6 // Check that we set the optsize attribute on the function.
7 // CHECK: @test1{{.*}}optsize
8 // CHECK: ret
9 }
10