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