repo.or.cz
/
clang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
[Heikki Kultala] This patch contains the ABI changes for the TCE target.
[clang.git]
/
test
/
SemaObjC
/
comptypes-4.m
blob
56b23b22458fe2f8bec353ccd197e3d415a242ba
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3
extern void foo();
4
5
@protocol MyProtocol @end
6
7
@interface MyClass @end
8
9
int main()
10
{
11
MyClass <MyProtocol> *obj_p;
12
MyClass *obj_cp;
13
14
obj_cp = obj_p;
15
obj_p = obj_cp;
16
17
if (obj_cp == obj_p)
18
foo();
19
20
if (obj_p == obj_cp)
21
foo();
22
23
}
24
25