float-range-2.c

来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 15 行

C
15
字号
/* Floating constants outside the range of their type should receive a   pedwarn, not a warning.  This includes INFINITY if the target does   not support infinities.  *//* Origin: Joseph Myers <jsm@polyomino.org.uk> *//* { dg-do compile { target vax-*-* pdp11-*-* } } *//* { dg-options "-ansi -pedantic-errors" } */voidf (void){  float a = __builtin_inff (); /* { dg-error "error: target format does not support infinity" } */  double b = __builtin_inf (); /* { dg-error "error: target format does not support infinity" } */  long double c = __builtin_infl (); /* { dg-error "error: target format does not support infinity" } */}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?