Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaCXX / GH61441.cpp
blob73ff77515a7c4328465d5779daaec69062a9efcb
1 // RUN: %clang_cc1 -fsyntax-only -verify -cl-std=clc++ -fblocks %s
2 // Checks Clang does not crash. We run in OpenCL mode to trigger block pointer
3 // crash. The __fp16 crash happens in standard mode too.
5 template <bool>
6 int foo() {
7 auto x = [&](__fp16) { return 0; }; // expected-error {{not allowed}}
8 auto y = [&](void(^)(int)) { return 0; }; // expected-error {{not allowed}}
9 return 0;
12 int bar() { return foo<true>(); }