libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / Wbuiltin-declaration-mismatch-5.c
blob9cac92777503e07c34bf89e4f41ef9a29a8303db
1 /* PR testsuite/88098 - FAIL: gcc.dg/Wbuiltin-declaration-mismatch-4.c
2 { dg-do compile }
3 { dg-options "-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" } */