Debian Codegraph @

gcc/testsuite/gcc.dg/c90-auto-1.c

raw
1 /* Test auto with implicit int for C90. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c90 -pedantic-errors" } */
4
5 void
6 f (void)
7 {
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;
12 }