repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
c90-auto-1.c
blob
f3c476c67756f26b2cef3c04ad55a8ca41e374d0
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
}