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
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
SemaObjCXX
/
warn-called-once.mm
blob
3763a9b219f240a4d5e6d45c804bf591b714c419
1
// RUN: %clang_cc1 -verify -fsyntax-only -fblocks -Wcompletion-handler %s
2
3
// expected-no-diagnostics
4
5
class HasCtor {
6
HasCtor(void *) {}
7
};
8
9
void double_call_one_block(void (^completionHandler)(void)) {
10
completionHandler();
11
completionHandler();
12
// no-warning - we don't support C++/Obj-C++ yet
13
}