зеркало из https://github.com/microsoft/clang-1.git
30 строки
537 B
C
30 строки
537 B
C
|
// RUN: clang -fsyntax-only -verify -pedantic %s
|
||
|
|
||
|
int foo();
|
||
|
int foo()
|
||
|
{
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
int bar();
|
||
|
int bar(int i) // expected-error {{previous definition is here}}
|
||
|
{
|
||
|
return 0;
|
||
|
}
|
||
|
int bar() // expected-error {{redefinition of 'bar'}}
|
||
|
{
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
int foobar(int); // expected-error {{previous definition is here}}
|
||
|
int foobar() // expected-error {{redefinition of 'foobar'}}
|
||
|
{
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
int wibble(); // expected-error {{previous definition is here}}
|
||
|
float wibble() // expected-error {{redefinition of 'wibble'}}
|
||
|
{
|
||
|
return 0.0f;
|
||
|
}
|