annotate clang/test/SemaObjCXX/warn-missing-super.mm @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
anatofuz
parents:
diff changeset
2 // PR13401
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 __attribute((objc_root_class)) @interface NSObject
anatofuz
parents:
diff changeset
5 @end
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 @interface Dummy : NSObject
anatofuz
parents:
diff changeset
8 @end
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10 template<typename T> struct shared_ptr {
anatofuz
parents:
diff changeset
11 constexpr shared_ptr() {}
anatofuz
parents:
diff changeset
12 };
anatofuz
parents:
diff changeset
13
anatofuz
parents:
diff changeset
14 @implementation Dummy
anatofuz
parents:
diff changeset
15 - (void)dealloc
anatofuz
parents:
diff changeset
16 {
anatofuz
parents:
diff changeset
17 constexpr shared_ptr<int> dummy;
anatofuz
parents:
diff changeset
18 } // expected-warning {{method possibly missing a [super dealloc] call}}
anatofuz
parents:
diff changeset
19 @end