blob: bcdc471eb589a437fdafdbe516d9bfba4ead5001 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* Test whether using attribute((cold)) really turns on -Os. Do this test
by checking whether strcpy calls the library function rather than doing
the move inline. */
/* { dg-do compile } */
/* { dg-options "-O3 -march=k8" } */
/* { dg-final { scan-assembler "(jmp|call)\t(.*)strcpy" } } */
void cold (char *) __attribute__((__cold__));
void cold (char *a)
{
__builtin_strcpy (a, "testing 1.2.3 testing 1.2.3");
}
|