зеркало из https://github.com/microsoft/clang-1.git
Convert CFLF to LF. CRLF was causing this test to fail under Mac OS X.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50388 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
01d9dbf4ae
Коммит
dd6cec16e9
|
@ -1,15 +1,15 @@
|
|||
// RUN: clang -fsyntax-only -verify %s
|
||||
namespace A { // expected-error {{error: previous definition is here}}
|
||||
int A;
|
||||
void f() { A = 0; }
|
||||
}
|
||||
|
||||
void f() { A = 0; } // expected-error {{error: unexpected namespace name 'A': expected expression}}
|
||||
int A; // expected-error {{error: redefinition of 'A' as different kind of symbol}}
|
||||
class A; // expected-error {{error: redefinition of 'A' as different kind of symbol}}
|
||||
|
||||
class B; // expected-error {{error: previous definition is here}}
|
||||
namespace B {} // expected-error {{error: redefinition of 'B' as different kind of symbol}}
|
||||
|
||||
void C(); // expected-error {{error: previous definition is here}}
|
||||
namespace C {} // expected-error {{error: redefinition of 'C' as different kind of symbol}}
|
||||
// RUN: clang -fsyntax-only -verify %s
|
||||
namespace A { // expected-error {{error: previous definition is here}}
|
||||
int A;
|
||||
void f() { A = 0; }
|
||||
}
|
||||
|
||||
void f() { A = 0; } // expected-error {{error: unexpected namespace name 'A': expected expression}}
|
||||
int A; // expected-error {{error: redefinition of 'A' as different kind of symbol}}
|
||||
class A; // expected-error {{error: redefinition of 'A' as different kind of symbol}}
|
||||
|
||||
class B; // expected-error {{error: previous definition is here}}
|
||||
namespace B {} // expected-error {{error: redefinition of 'B' as different kind of symbol}}
|
||||
|
||||
void C(); // expected-error {{error: previous definition is here}}
|
||||
namespace C {} // expected-error {{error: redefinition of 'C' as different kind of symbol}}
|
||||
|
|
Загрузка…
Ссылка в новой задаче