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
Require target lra in gcc.dg/pr108095.c
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
c90-auto-1.c
blob
f00f767c50a7769ad2604ea1d8f38e1f8c46e2b1
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 C2x it
9
would have type double. */
10
auto
x
=
1.5
;
11
int
*
p
= &
x
;
12
}