latter may (eventually) perform multiple levels of desugaring (thus
breaking the newly-added tests) and the former is faster. Thanks, John!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93192
91177308-0d34-0410-b5e6-
96231b3b80d8
// };
//
// since that was the intent of DR56.
- if (New->getUnderlyingType()->getAs<ElaboratedType>())
+ if (isa<ElaboratedType>(New->getUnderlyingType()))
return;
Diag(New->getLocation(), diag::err_redefinition)
struct S {
typedef struct A {} A; // expected-note {{previous definition is here}}
- typedef struct B B;
+ typedef struct B {} B;
typedef A A; // expected-error {{redefinition of 'A'}}
+
+ struct C { }; // expected-note{{previous definition is here}}
+ typedef struct C OtherC;
+ typedef OtherC C; // expected-error{{redefinition of 'C'}}
};