libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / c90-auto-1.c
blobf3c476c67756f26b2cef3c04ad55a8ca41e374d0
1 /* Test auto with implicit int for C90. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c90 -pedantic-errors" } */
5 void
6 f (void)
8 /* This should have type int following C90 rules, whereas in C23 it
9 would have type double. */
10 auto x = 1.5;
11 int *p = &x;