blob: f3c476c67756f26b2cef3c04ad55a8ca41e374d0 [file] [log] [blame]
/* Test auto with implicit int for C90. */
/* { dg-do compile } */
/* { dg-options "-std=c90 -pedantic-errors" } */
void
f (void)
{
/* This should have type int following C90 rules, whereas in C23 it
would have type double. */
auto x = 1.5;
int *p = &x;
}