Fix file cache tunables documentation
[official-gcc.git] / gcc / testsuite / gcc.dg / Wbuiltin-declaration-mismatch-5.c
blob08e677e060587695266aa9cdc6167987378ab71e
1 /* PR testsuite/88098 - FAIL: gcc.dg/Wbuiltin-declaration-mismatch-4.c
2 { dg-do compile }
3 { dg-options "-std=gnu17 -Wbuiltin-declaration-mismatch -fshort-enums" } */
5 int abs ();
6 double fabs (); /* { dg-message "built-in .fabs. declared here" } */
8 enum E { e0 } e;
10 int i;
11 double d;
13 void test_short_enums (void)
15 /* enum e promotes to int. */
16 i = abs (e);
18 d = fabs (e); /* { dg-warning ".fabs. argument 1 promotes to .int. where .double. is expected in a call to built-in function declared without prototype" } */