зеркало из https://github.com/microsoft/clang-1.git
Oops, Ted beat me to it. I'll just play angry god and remove his version!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65638 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
c8d8fa965e
Коммит
7fa649f984
|
@ -1,16 +0,0 @@
|
|||
// RUN: clang -verify %s
|
||||
//
|
||||
// This example was reduced from actual code in Wine 1.1.13. GCC accepts this
|
||||
// code, while the correct behavior is to reject it.
|
||||
//
|
||||
|
||||
typedef struct _IRP {
|
||||
union {
|
||||
struct {
|
||||
union {} u; // expected-note{{previous declaration is here}}
|
||||
struct {
|
||||
union {} u; // expected-error{{error: member of anonymous struct redeclares 'u'}}
|
||||
};
|
||||
} Overlay;
|
||||
} Tail;
|
||||
} IRP;
|
Загрузка…
Ссылка в новой задаче