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
Revise -mdisable-fpregs option and add new -msoft-mult option
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
c2x-old-style-definition-4.c
blob
b1862b101b89baffd0f208fb3619581f52b308a3
1
/* Test old-style function definitions not in C2x: () gives type with
2
a prototype. */
3
/* { dg-do compile } */
4
/* { dg-options "-std=c2x" } */
5
6
void
7
f
()
8
{
9
}
10
11
void
12
g
(
void
)
13
{
14
f
(
1
);
/* { dg-error "too many arguments to function" } */
15
}