blob: f553b136ebbad8a00b6df2acc9d679354cfcf251 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
int test1() __attribute__((__cold__)) {
return 42;
// Check that we set the optsize attribute on the function.
// CHECK: @test1{{.*}}#0
// CHECK: ret
}
// CHECK: attributes #0 = { nounwind optsize "target-features"={{.*}} }
|