annotate gcc/testsuite/gcc.dg/c99-tgmath-4.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Test for <tgmath.h> in C99. */
kono
parents:
diff changeset
2 /* Origin: Matt Austern <austern@apple.com>
kono
parents:
diff changeset
3 /* { dg-do compile { target c99_runtime } } */
kono
parents:
diff changeset
4 /* { dg-options "-std=iso9899:1999" } */
kono
parents:
diff changeset
5 /* { dg-add-options c99_runtime } */
kono
parents:
diff changeset
6 /* { dg-require-effective-target tgmath_h } */
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 /* Test that invoking type-generic pow on complex float invokes cpowf. */
kono
parents:
diff changeset
9 #include <tgmath.h>
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 complex double foo(complex float x, float y)
kono
parents:
diff changeset
12 {
kono
parents:
diff changeset
13 return pow(x, y);
kono
parents:
diff changeset
14 }
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 /* { dg-final { scan-assembler "cpowf" } } */