[gcc]
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / float128-mix.c
blob71f840c9490d7189839006e7a5376542aae1c8ec
1 /* { dg-do compile { target { powerpc*-*-linux* } } } */
2 /* { dg-require-effective-target powerpc_vsx_ok } */
3 /* { dg-options "-O2 -mvsx" } */
6 /* Test to make sure that __float128 and long double cannot be combined together. */
7 __float128 add (__float128 a, long double b)
9 return a+b; /* { dg-error "__float128 and long double cannot be used in the same expression" } */
12 __ibm128 sub (long double a, __float128 b)
14 return a-b; /* { dg-error "__float128 and long double cannot be used in the same expression" } */