diff options
Diffstat (limited to 'test/CodeGen/attr-coldhot.c')
-rw-r--r-- | test/CodeGen/attr-coldhot.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/attr-coldhot.c b/test/CodeGen/attr-coldhot.c new file mode 100644 index 0000000..b9bb299 --- /dev/null +++ b/test/CodeGen/attr-coldhot.c @@ -0,0 +1,9 @@ +// 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{{.*}}optsize +// CHECK: ret +} |