You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
323 B
16 lines
323 B
4 months ago
|
// RUN: %clang_cc1 -fsyntax-only -verify -triple %ms_abi_triple -Wno-objc-root-class %s
|
||
|
// expected-no-diagnostics
|
||
|
|
||
|
class Foo {
|
||
|
~Foo();
|
||
|
};
|
||
|
|
||
|
@interface bar
|
||
|
- (void) my_method: (Foo)arg;
|
||
|
@end
|
||
|
|
||
|
@implementation bar
|
||
|
- (void) my_method: (Foo)arg { // no error; MS ABI will call Foo's dtor, but we skip the access check.
|
||
|
}
|
||
|
@end
|