2007-07-13 08:12:51 +02:00
|
|
|
/* Test for <tgmath.h> in C99. */
|
|
|
|
/* Origin: Matt Austern <austern@apple.com>
|
2007-09-27 22:10:15 +02:00
|
|
|
/* { dg-do compile { target c99_runtime } } */
|
2007-07-13 08:12:51 +02:00
|
|
|
/* { dg-options "-std=iso9899:1999" } */
|
2007-09-27 22:10:15 +02:00
|
|
|
/* { dg-add-options c99_runtime } */
|
2007-07-13 08:12:51 +02:00
|
|
|
|
|
|
|
/* Test that invoking type-generic sin on a float invokes sinf. */
|
|
|
|
#include <tgmath.h>
|
|
|
|
|
|
|
|
float foo(float x)
|
|
|
|
{
|
|
|
|
return sin(x);
|
|
|
|
}
|
|
|
|
|
2007-08-29 11:18:28 +02:00
|
|
|
/* { dg-final { scan-assembler "sinf" } } */
|