1 // RUN: %clang_cc1 -std=c++1z -verify -emit-llvm-only %s
2 // expected-no-diagnostics
4 template <unsigned int BUFFER_SIZE
> class Buffer
{};
11 template <unsigned int N
> A
parse(Buffer
<N
> buffer
);
13 template<unsigned int N
>
14 void init_in_if(Buffer
<N
> buffer
) {
15 if (A a
= parse(buffer
); a
.status
> 0) {
19 template<unsigned int N
>
20 void init_in_switch(Buffer
<N
> buffer
) {
21 switch (A a
= parse(buffer
); a
.status
) {
30 init_in_switch(buffer
);