Test for testing a global followed by extern declaration.
From-SVN: r72095
This commit is contained in:
parent
b68a40b280
commit
e9ff9b17a7
13
gcc/testsuite/gcc.dg/decl-global-ext.c
Normal file
13
gcc/testsuite/gcc.dg/decl-global-ext.c
Normal file
@ -0,0 +1,13 @@
|
||||
int merror = 0;
|
||||
extern int merror;
|
||||
|
||||
void mtherr (int code)
|
||||
{
|
||||
merror = code + 1;
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
mtherr(7);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user