Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
clang/test/SemaCXX/MicrosoftExtensions.cpp
Show First 20 Lines • Show All 561 Lines • ▼ Show 20 Lines | |||||
}; | }; | ||||
} | } | ||||
class PR34109_class { | class PR34109_class { | ||||
PR34109_class() {} | PR34109_class() {} | ||||
virtual ~PR34109_class() {} | virtual ~PR34109_class() {} | ||||
}; | }; | ||||
#if !defined(__cpp_sized_deallocation) | |||||
void operator delete(void *) throw(); | void operator delete(void *) throw(); | ||||
// expected-note@-1 {{previous declaration is here}} | // expected-note@-1 {{previous declaration is here}} | ||||
__declspec(dllexport) void operator delete(void *) throw(); | __declspec(dllexport) void operator delete(void *) throw(); | ||||
// expected-error@-1 {{redeclaration of 'operator delete' cannot add 'dllexport' attribute}} | // expected-error@-1 {{redeclaration of 'operator delete' cannot add 'dllexport' attribute}} | ||||
#else | |||||
void operator delete(void *, unsigned int) throw(); | |||||
// expected-note@-1 {{previous declaration is here}} | |||||
__declspec(dllexport) void operator delete(void *, unsigned int) throw(); | |||||
// expected-error@-1 {{redeclaration of 'operator delete' cannot add 'dllexport' attribute}} | |||||
#endif | |||||
void PR34109(int* a) { | void PR34109(int* a) { | ||||
delete a; | delete a; | ||||
} | } | ||||
namespace PR42089 { | namespace PR42089 { | ||||
struct S { | struct S { | ||||
__attribute__((nothrow)) void Foo(); // expected-note {{previous declaration is here}} | __attribute__((nothrow)) void Foo(); // expected-note {{previous declaration is here}} | ||||
__attribute__((nothrow)) void Bar(); | __attribute__((nothrow)) void Bar(); | ||||
Show All 23 Lines |