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