blob: b9bb299b5e49a4f8cd700af05407b6729e15798c [file] [log] [blame]
Benjamin Krameree409a92012-05-12 21:10:52 +00001// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
2
3int 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}