2014-11-24 09:15:30 +00:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify -triple %ms_abi_triple -Wno-objc-root-class %s
|
|
|
|
// expected-no-diagnostics
|
2013-12-22 00:07:40 +00:00
|
|
|
|
|
|
|
class Foo {
|
2014-11-24 09:15:30 +00:00
|
|
|
~Foo();
|
2013-12-22 00:07:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
@interface bar
|
|
|
|
- (void) my_method: (Foo)arg;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation bar
|
2014-11-24 09:15:30 +00:00
|
|
|
- (void) my_method: (Foo)arg { // no error; MS ABI will call Foo's dtor, but we skip the access check.
|
2013-12-22 00:07:40 +00:00
|
|
|
}
|
|
|
|
@end
|