[VPlan] Add outer loop tests with wide phis in inner loop.
[llvm-project.git] / clang / test / CXX / dcl.decl / dcl.init / dcl.init.ref / p4.cpp
blob1a3732d99ea6ff1746e2c935e242b55053f1bed9
1 // RUN: %clang_cc1 -std=c++1z -verify %s
3 void f() noexcept;
4 void (&r)() = f;
5 void (&s)() noexcept = r; // expected-error {{cannot bind}}
7 void (&cond1)() noexcept = true ? r : f; // expected-error {{cannot bind}}
8 void (&cond2)() noexcept = true ? f : r; // expected-error {{cannot bind}}
9 // FIXME: Strictly, the rules in p4 don't allow this, because the operand types
10 // are not of the same type other than cv-qualifiers, but we consider that to
11 // be a defect, and instead allow reference-compatible types here.
12 void (&cond3)() = true ? r : f;
13 void (&cond4)() = true ? f : r;