зеркало из https://github.com/microsoft/clang-1.git
Restore some parts of this test which were accidental reverted in r147649.
Thanks to David Blaikie for pointing this out. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147783 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
1c3875dab9
Коммит
80a5b27fe4
|
@ -27,8 +27,14 @@ void f() {
|
|||
typedef T(*td)(int(p));
|
||||
extern T(*tp)(int(p));
|
||||
T d3(); // expected-warning {{empty parentheses interpreted as a function declaration}}
|
||||
T d3v(void);
|
||||
typedef T d3t();
|
||||
extern T f3();
|
||||
__typeof(*T()) f4(); // expected-warning {{empty parentheses interpreted as a function declaration}}
|
||||
typedef void *V;
|
||||
__typeof(*V()) f5();
|
||||
T multi1,
|
||||
multi2(); // expected-warning {{empty parentheses interpreted as a function declaration}}
|
||||
T(d)[5]; // expected-error {{redefinition of 'd'}}
|
||||
typeof(int[])(f) = { 1, 2 }; // expected-error {{extension used}}
|
||||
void(b)(int);
|
||||
|
|
Загрузка…
Ссылка в новой задаче