repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
[AArch64] Add fpext and fpround costs (#119292)
[llvm-project.git]
/
clang
/
test
/
SemaObjCXX
/
nullptr.mm
blob
73a921e8c895cd195d663d5e42ce9e9cfc6fc130
1
// RUN: %clang_cc1 -std=c++11 -fblocks -fsyntax-only -verify %s
2
// expected-no-diagnostics
3
4
@interface A
5
@end
6
7
void comparisons(A *a) {
8
(void)(a == nullptr);
9
(void)(nullptr == a);
10
}
11
12
void assignment(A *a) {
13
a = nullptr;
14
}
15
16
int PR10145a = (void(^)())0 == nullptr;
17
int PR10145b = nullptr == (void(^)())0;